-
Notifications
You must be signed in to change notification settings - Fork 0
/
#WSQ08
32 lines (31 loc) · 835 Bytes
/
#WSQ08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
using namespace std;
int sum(int x, int y){
return x + y;
}
int difference(int x, int y){
return x - y;
}
int multiplication(int x, int y){
return x * y;
}
int division(int x, int y){
return x / y;
}
int reminder(int x, int y){
return (x % y);
}
int main(){
int x;
int y;
cout << "Lets play with numbers!, please tell me a number" << endl;
cin >> x;
cout << "Another number please" << endl;
cin >> y;
cout << "The sum of two numbers is " << sum(x , y) << endl;
cout << "The difference of two numbers is " << difference(x , y) << endl;
cout << "The multiplication of two numbers is " << multiplication(x , y) << endl;
cout << "The division of two numbers is " << division(x , y) << endl;
cout << "The reminder of two numbers is " << reminder(x , y) << endl;
return 0;
}