Your assignment is to write a program named math which inputs 2 integer numbers (a and b), then outputs the sum (a+b) of those numbers, the difference (a-b) of those numbers, the product (a*b) of those numbers, and the ratio (a/b) of those numbers.
Each of the mathematical operations should take place in a function of its own. The return value should be the result of the mathematical operation.
Upload your main.cpp file by the end of class, whether you're done or not.
Refer to the online tutorial located at http://www.cplusplus.com/doc/tutorial/functions.html
.
No comments:
Post a Comment