Question: Write a program that has the following loops: 1. A 'while' loop that prints out the numbers 1 through 10. A 'while loop that prints

 Write a program that has the following loops: 1. A 'while'

Write a program that has the following loops: 1. A 'while' loop that prints out the numbers 1 through 10. A 'while loop that prints out the numbers 10 through 100, in steps of 10. 3. A do-while loop that prints out the numbers 1 through 10. 2. A do-while loop that prints out the numbers 10 through 100, in steps of 10. 5. A 'while' loop that prompts the user for a number, and stone in the loop until they enter a number greater than e. (we are aying that we want a Positive number greater than zero) 6. 7. A do - while loop that prompts the user for a number, and stays in the loop until they enter a number less than or equal to 8. (we are saying we want a negative number (or zero)). A while' loop that prompts the user for a char answer, and stays in the loop until an answer of ye" (or &"V6") is entered. ly or Y is good - gets us out of the loop) A for loop that iterates 10 times and prints out the numbers @ through 9 (one number per iteration). A for loop that Iterates 10 times and prints out the numbers 9 through e (one number per iteration), use steps of -1. 8 9. 10 A BE for loop that loops 5 times, asking the user for a number each time, and printing out the loop iteration number, and the number they entered times the loop count. (Example output: Enter a number: Loop count: 1 Answer 5 Enter a number Loop count: 2 answer 6 Enter a number 42 Loop count: 3 Answer 126 For Turn in: Please send me either the main or you can copy/paste your code on a Notepad text file and send the file to me

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!