C program 4. Operation: Operation You have been cordially invited to partake in Operation: Operation. Your mission, shou
Posted: Fri May 20, 2022 12:51 pm
C program
4. Operation: Operation
You have been cordially invited to partake in Operation:
Operation. Your mission, should you choose to accept it, is to take
the two numbers and the operator given then perform the operation
successfully.
Instructions:
Input
1. First number
2. Operator
3. Second number
Output
The first line will contain a message prompt to input the first
number.
The second line will contain a message prompt to input the
operator.
The third line will contain a message prompt to input the second
number.
The last line contains the result with 2 decimal places.
Enter·the·first·number:·5
Select·the·operator·(+,·-,·*,·/):·+
Enter·the·second·number:·0.70
Result·=·5.70
4. Operation: Operation
You have been cordially invited to partake in Operation:
Operation. Your mission, should you choose to accept it, is to take
the two numbers and the operator given then perform the operation
successfully.
Instructions:
Input
1. First number
2. Operator
3. Second number
Output
The first line will contain a message prompt to input the first
number.
The second line will contain a message prompt to input the
operator.
The third line will contain a message prompt to input the second
number.
The last line contains the result with 2 decimal places.
Enter·the·first·number:·5
Select·the·operator·(+,·-,·*,·/):·+
Enter·the·second·number:·0.70
Result·=·5.70