C program 4. Operation: Operation You have been cordially invited to partake in Operation: Operation. Your mission, shou

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

C program 4. Operation: Operation You have been cordially invited to partake in Operation: Operation. Your mission, shou

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply