Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hurry up i am in examination Take care USE C PROGRAMMING. Write a C program to keep displaying the following menu: 1) Months 2) Days
Hurry up i am in examination
Take care USE C PROGRAMMING.
Write a C program to keep displaying the following menu:
1) Months 2) Days 3) Hours 4) Minutes 5) Seconds 6) Exit
to read a Year value and convert it to the selected item until the user chooses Exit. Assume that 1 Year = 12 Months and 1 Month = 30 Days.
Example: If option 1 is selected and input is 10, the output will be 10 * 12 = 120 Months If option 2 is selected and input is 5, the output will be 5*12*30=180 If option 6 is selected, the program terminates.
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