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
Step: 1
Answer Certainly Heres a s...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Systems analysis and design
Authors: kenneth e. kendall, julie e. kendall
8th Edition
135094909, 013608916X, 9780135094907, 978-0136089162
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App