Question: 1. Write a program that will print the message Computer Science is cool!! 10 times. Use a while loop. 2. Instead of printing 10
1. Write a program that will print the message "Computer Science is cool!!" 10 times. Use a while loop. 2. Instead of printing 10 times, ask the user how many times the message should be printed. You will need to declare a variable to store the user's response and use that variable to control the loop. 3. Number each line in the output, and add a message at the end of the loop that says how many times the message was printed. So if the user enters 3, your program should print this: 1 Computer Science is cool!! 2 Computer Science is cool!! 3 Computer Science is cool!! This message is printed 3 times.
Step by Step Solution
There are 3 Steps involved in it
Answer Certainly Heres a s... View full answer
Get step-by-step solutions from verified subject matter experts
