Question: Write the main() program in C that reads two integers from the standard input and calls four functions namely add(), sub(), mult() and div(), to

Write the main() program in C that reads two integers from the standard input and calls four functions namely add(), sub(), mult() and div(), to calculate the addition, subtraction, multiplication and division of the entered integers respectively, then displays them on the screen.

Note: The calculated results should be printed out from the main() function itself.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!