반응형
#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;
}
'Algorithm' 카테고리의 다른 글
백준(baekjoon)(BaekJoon)코딩 10998번:A*B 답 (0) | 2016.09.23 |
---|---|
백준(baekjoon)(BaekJoon)코딩 1008번:A/B 답 (0) | 2016.09.23 |
백준(baekjoon)(BaekJoon)코딩 10430번:나머지 답 (0) | 2016.09.23 |
백준(baekjoon)(BaekJoon)코딩 2741번:N찍기 답 (0) | 2016.09.23 |
백준(baekjoon)(BaekJoon)코딩 2742번:기찍N 답 (0) | 2016.09.23 |