Question: You are tasked with completing a simple main function to read in two values to the program and then to output them back to the
You are tasked with completing a simple main function to read in two values to the program and then to output them back to the user. You are expected to declare two variables, one of data type float and the other an integer.
You must construct the scanf and printf statements to accomplish this task.
The first value is a type float and should be printed back out with precision to at least the hundredths position.
The second value is an integer.
Your program will read in the values in order, float value first then the integer value.
Then you will print the values back to the user again in the same order, float value first then the integer.
Both outputs should have a new line using the newline character in the printf function call.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
