Question: Write a program that asks user to enter two floating-point numbers through keyboard (a and b) and shows the results of the four main

Write a program that asks user to enter two floating-point numbers through

Write a program that asks user to enter two floating-point numbers through keyboard (a and b) and shows the results of the four main arithmetic operations (a + b, a-b, ax b, and a+b) on the screen. NOTE Organize your output as shown in the following example: Example: a= =2.5 and b = 3.1 2.5+3.1 5.60 2.5-3.1=-0.60 2.5*3.1 7.75 2.5/3.1 0.81 C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a C program that prompts the user to enter two floatingpoint numbers a and b perfor... View full answer

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 Programming Questions!