Question
** C not C++** Write a complete program that includes the following three tasks: Write a for loop to count and display integers starting at
** C not C++**
Write a complete program that includes the following three tasks: Write a for loop to count and display integers starting at 0 and counting by 5's up through 100 (one per line) Write a do-while loop to output the countdown to the new year. The countdown starts at 10 and goes down to 1 (one per line), followed by "Happy New Year!" and a newline. Ask the user to enter a positive number, using the prompt "Enter a positive number: ". Then print a newline. Using a while loop, print out the message "You're doing great today!" the user selected number of times (once per line).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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 Started