본문 바로가기

Algorithm

(C++) - 백준(BOJ) 10869번 : 사칙연산

반응형
#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;
}