Question: Programming in C Write a C program that uses only 1 scanf () statement and a while loop to do either of the following tasks:

Programming in C

 Programming in C Write a C program that uses only 1

Write a C program that uses only 1 scanf () statement and a while loop to do either of the following tasks: Option 1 Display a prompt for a person's height in inches and first name. Include in the prompt the instruction to enter a q to quit the program. Use a single scanf () statement in conjunction with a while loop to: Read the person's height and first name. Convert the height in inches to a height in feet and inches using/and % operators. There are 12 inches in a foot, Print out the person's name and height on 1 line. Example output is: Nellie's height is 5 foot 4 inches. Demonstrate that your program works by entering 2 sets of ages and names and then enter a q to exit the program

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!