Arithmetic Operators

The Program must allow users to enter any two positive numbers and then display the results.
i'm strugglin
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
33
34
35
  #include <iostream>
using namespace std;
class ArithmeticOperators{
private:
    int x;
    int y;
public:
    void set_values();
    int product();
    int difference();
    double quotient();
    int addition();
};
void ArithmeticOperators::set_values(int,int)
cout<<"Enter first value:"<<endl;
cin>>x;
cout<<"Enter second value:";
cin>>y;
product=x*y;
difference=x-y;
quotient=x/y;
addition=x+y;
}
int main{
obj.product()
obj.diffeence()
obj.quotient()
obj.addition
obj.printproduct()
obj.printdifference()
obj.printquotient()
obj.printaddition()
return 0;
}
sorry it wont happen again the thing am very very desperate
Topic archived. No new replies allowed.