\/\/ Mauricio Cooper A01630042<\/p>\n
#include<\/a> <iostream><\/p>\n using namespace std;<\/p>\n <\/p>\n int thesum(int x, int y){<\/p>\n int answer = x+y;<\/p>\n return answer;<\/p>\n }<\/p>\n int thediff (int x, int y){<\/p>\n int answer = x-y;<\/p>\n return answer;<\/p>\n }<\/p>\n int themult (int x, int y){<\/p>\n int answer = x*y;<\/p>\n return answer;<\/p>\n }<\/p>\n int thediv (int x, int y){<\/p>\n int answer = x\/y;<\/p>\n return answer;<\/p>\n }<\/p>\n int theres (int x, int y){<\/p>\n int answer = x%y;<\/p>\n return answer;<\/p>\n }<\/p>\n int main () {<\/p>\n <\/p>\n int num1,num2,sum,rest,mult,div,res;<\/p>\n <\/p>\n cout<<“Give two numbers to do some math ” << endl;<\/p>\n cout<<“Enter the first number ” << endl;<\/p>\n cin>>num1;<\/p>\n cout<<“Enter the second number ” << endl;<\/p>\n cin>>num2;<\/p>\n <\/p>\n sum = thesum (num1,num2);<\/p>\n rest = thediff (num1,num2);<\/p>\n mult = themult (num1,num2);<\/p>\n div = thediv (num1,num2);<\/p>\n res = theres (num1,num2);<\/p>\n <\/p>\n cout<<“The sum of the numbers is ” << sum << endl;<\/p>\n cout<<“The difference of the numbers is ” << rest << endl;<\/p>\n cout<<“The multiplication of the numbers is ” << mult << endl;<\/p>\n cout<<“The division of the numbers is ” << div << endl;<\/p>\n cout<<“The left of the division is ” << res << endl;<\/p>\n <\/p>\n return 0;<\/p>\n }<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" \/\/ Mauricio Cooper A01630042#include <iostream>using namespace std; int thesum(int x, int y){int answer = x+y;return answer;}int thediff (int x, int y){int answer = x-y;return answer;}int themult (int x, int y){int answer = x*y;retu… Continue reading