Question: Purpose: Using control structures In C Language For this lab you will write a small program that will prompt the user for three numbers representing

Purpose: Using control structures

In C Language

For this lab you will write a small program that will prompt the user for three numbers representing the time as hours, minutes, and seconds. Your program will then print the time as a series of asterisks (*), with one digit represented on each line (B and C grades) or on two lines (A grade). After printing the asterisks, the code will loop back to input and print a new time unless the hours, minutes and seconds are all zero. In that case the program will exit.

For the C grade print each value as simply that number of asterisks (e.g., 5 is printed as *****).

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!