Functions: Exercise
Instructions:
You can discuss but each student MUST write his/her own code
Exercise
Write a program with seven functions. Five of the functions will accept
two integer arguments from the main() function and perform arithmetic
calculations on them as follows:
i) find the sum
ii) find the difference
iii) find the product
iv) find the quotient
v) find the remainder
The sixth function will be used to ask the user to enter the integer
numbers to be used for the calculations. It will capture the values and
return them to the main() function. (Note : this function will be called
twice)
The last function will be used to display the results. It will get its values
(results) from the main() function. It will be called 5 times, each time
it will display one result.
You must declare function prototypes for all seven functions.
2