1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Oxana [17]
4 years ago
6

Write a program that prints the number 1 through 10 using a while loop

Computers and Technology
1 answer:
vova2212 [387]4 years ago
7 0
Which programming language are you working in?

Here is how you could achieve this in Python:

establish a counter, starting at 1.
While your counter is 10 or less, do two things:
print the counter,
and increase the counter by 1.

code:
counter = 1

while counter <= 10:
print(counter)
counter = counter + 1

Those last two lines should be indented.
You might be interested in
Sharon wants to name her website sharonworld.com. What should she do next? A. begin searching for images to make her website loo
Goshia [24]

purchase the domain name

3 0
3 years ago
Read 2 more answers
Question 13 (6.67 points)
Montano1993 [528]

Answer:Offers professional document appearance

Explanation:

6 0
4 years ago
I'm new to programming and I'm starting with c++, so the first program I want to write should take a string of characters and ou
Amanda [17]
#include <iostream>
#include <string>

using namespace std;

int main() {

string userInput;
cout << "Enter word" << endl;

cin >> userInput;

cout << "you entered" << endl;
cout << userInput;

return 0;

}
5 0
4 years ago
Read 2 more answers
Saturn has an orbital period of 29.46 years
Alona [7]

This is true. I'm not sure what you're asking here, but if it's a true/false statement, it's true.

3 0
4 years ago
Read 2 more answers
You are troubleshooting a connectivity problem in your corporate network and want to isolate the problem. You suspect that a rou
FromTheMoon [43]

Answer:

Something

Explanation:

Idk

3 0
4 years ago
Other questions:
  • What causes the lens of the camera to extend or retract
    6·2 answers
  • I’m stuck in a class where i don’t understand anything, it’s only been 3 days.. any tips for learning computer coding?
    12·1 answer
  • Suppose the work required to stretch a spring from 1.1m beyond its natural length to a meters beyond its natural length is 5 J,
    14·1 answer
  • Create a Python script that takes two parameters to do the following:-
    9·1 answer
  • Can someone please answer this please!!!
    6·2 answers
  • Point out the wrong statement:
    7·1 answer
  • Which two functions can be used with the math module?
    13·1 answer
  • For a company, intellectual property is _______________.
    5·2 answers
  • How might a company gain followers on Twitter?
    7·1 answer
  • Assume variable age = 22, pet = "dog", and pet_name = "Gerald".
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!