Question: wirte a C + + program using scanf, printf 5 . 4 . 2 Exercise 2 : Printing a Table Write a program that asks

wirte a C++ program using scanf, printf5.4.2 Exercise 2: Printing a Table
Write a program that asks the user for 2 floating point numbers and 2 integer numbers and then
displays them in 2 tables using the format characters for the printf ) function. (Refer to section
6.5.1 in the theory portion of the course pack).
Note: The above example uses a "|"(space, bar, space) between each column. No other
spaces should be used to achieve these tables.
Example: The following line of code will print the first heading for the table above:
printf ("|n|n%8s |%12s |%12s |%12s", "Float", "Basic", "0.00","+0.0000");
 wirte a C++ program using scanf, printf5.4.2 Exercise 2: Printing a

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!