반응형
문제 : https://www.acmicpc.net/problem/10869
풀이과정
입출력은 iostream의 cin, cout 사용
전체코드(C++14)
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b << endl;
cout << a - b << endl;
cout << a * b << endl;
cout << a / b << endl;
cout << a % b << endl;
}
최근댓글