Question: Write a C program that asks the user to enter four integers, representing the lengths in inches and centimeters. After scanning the values the program
Write a C program that asks the user to enter four integers, representing the lengths in inches and centimeters. After scanning the values the program should print a formatted table. Your program should provide a table with exactly the same format.
You should print two entered inch values in the first column, and two corresponding lengths in centimeters in the second column inch Two entered centimeters lengths in the third column, and two corresponding lengths in inch in the fourth column.
The width of the first column is digits, second column digits, third column digits, fourth digits. There are two spaces, vertical line and another two spaces between the second and the third columns.
See the example below. Run your program and show the output with the same input values.
Enter two lengths in inches:
Enter two lengths in cm:
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
