Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 programStep 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