Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 . 9 LAB: Getting input You are tasked with completing a simple main function to read in two values to the program and then
LAB: Getting input
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.
qxzay
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