Write a program to generate the output below, using program C. The program should first prompt the user to type in two numbers, one at a time; and then display the addition, subtraction, multiplication and division between these numbers as shown. The output of the code: Please enter the first number: 5 And now the second number: 2.5 Results: 5.00 + 2.50 = 7.50 5.00 - 2.50 = 2.50 5.00 * 2.50 = 12.50 5.00 / 2.50 = 2.00 Press any key to continue . . . _
Write a
The output of the code:
Please enter the first number: 5 And now the second number: 2.5 Results: 5.00 + 2.50 = 7.50 5.00 - 2.50 = 2.50 5.00 * 2.50 = 12.50 5.00 / 2.50 = 2.00 Press any key to continue . . . _
Step by step
Solved in 2 steps with 2 images