Answered step by step
Verified Expert Solution
Link Copied!

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

3.9 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 'n' newline character in the printf() function call.
525740.3915756 qx3zay 7
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions