| ||
| using namespace std; | ||
| class oper{ | ||
| int a, b; | ||
| public : | ||
| void input(){ | ||
| cin >> a >> b; | ||
| } | ||
| void operation(){ | ||
| cout<< a+b << endl; | ||
| cout << a-b << endl; | ||
| cout << a*b << endl; | ||
| cout << a/b << endl; | ||
| cout << a%b << endl; | ||
| } | ||
| }; | ||
| int main(){ | ||
| oper AB; | ||
| AB.input(); | ||
| AB.operation(); | ||
| } |
'알고리즘 문제 풀이 > 1DP_과제(~180615)' 카테고리의 다른 글
| 180331_12100_2048(easy) (0) | 2018.03.31 |
|---|---|
| 180330_2750_수 정렬하기 (0) | 2018.03.30 |
| 180318_1182_부분집합의 합 (0) | 2018.03.18 |
| 180302_2501_약수 구하기 (0) | 2018.03.02 |
| 180302_9506_약수들의 합 (0) | 2018.03.02 |