Question: Write a dowhile loop to: a. ask the user for a number ( use the variable Guess). b. get user input. c. tell the user

Write a dowhile loop to: a. ask the user for a number ( use the variable Guess). b. get user input. c. tell the user the remainder of dividing the number by 5 (modulo) even if result is 0. d. continue the loop until the user enters zero (0) as the number. (Make sure the user is aware of this.) Organize the loop like this (this is a planning technique called pseudocode): do { prompt the user for a # (a. above) get user input (b. above) output to user (c. above) }while (your test goes here to see if the number is 0); 12. Create a for loop within a for loop. The outer loop will count from 1 to 5. The inner loop will count from 1 to 6 and write the product of the outer loop counter multiplied by the inner loop counter, all on the same line with one tab (\t) between. Between the loop ends put a line feed (endl or ). The result should look like this: 1 2 3 4 5 6 2 4 6 8 10 12 3 6 9 12 15 18 etc,

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!