Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Using for loop. Make and run a program that will display the numbers 1, 2, 3, and so on depending on the number of lines the user will enter. For example, if input=3, first line of output should be 1, next line 2 3, and the last line 4 5 6.

OpenStudy (hari5719):

language

OpenStudy (hari5719):

???

OpenStudy (anonymous):

Ask for input and save that input to a variable after converting it to an integer. Use that integer and a for loop to print counting numbers up to that number, such as: for(i = 0; i < n; i++) // pseudo code print(i+1) Without knowing what specific language, we can't help you out more than that.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!