10869번 사칙연산
2023. 3. 1. 03:26ㆍBaekJoon
단계별로 풀어보기 - 입출력과 사칙연산 - 6단계
https://www.acmicpc.net/problem/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;
return 0;
}
'BaekJoon' 카테고리의 다른 글
18108번 1998년생인 내가 태국에서는 2541년생?! (0) | 2023.03.01 |
---|---|
10926번 ??! (0) | 2023.03.01 |
1008번 A/B (0) | 2023.03.01 |
10998번 A×B (0) | 2023.03.01 |
1001번 A-B (1) | 2023.03.01 |