#include <iostream>
using namespace std;
void cal(int A,int B){
cout << A+B << endl;
cout << A-B << endl;
cout << A*B << endl;
cout << A/B << endl;
cout << A%B << endl;
}
int main(){
int A,B;
cin >> A >> B;
cal(A,B);
return 0;
}
'백준알고리즘' 카테고리의 다른 글
백준 1065 C++ (0) | 2021.06.30 |
---|---|
백준 4673 C++ (0) | 2021.06.28 |
백준 4344 C++ (0) | 2021.06.28 |
백준 2588 C++ (0) | 2021.06.28 |
백준 1546번 C++ (0) | 2021.06.28 |