반응형
요약 : 두 수의 값을 비교하여 >, <, == 를 결정한다.
소스코드
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <iostream>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a,b;
cin >> a >> b;
if(a>b) cout << ">" << endl;
else if(a<b) cout << "<" << endl;
else cout << "==" << endl;
return 0;
}
|
cs |
정답 확인
반응형
'category > 백준 알고리즘 c++' 카테고리의 다른 글
백준 알고리즘 2884번 알람 시계 c++ (0) | 2020.12.03 |
---|---|
백준 알고리즘 14681번 사분면 고르기 c++ (0) | 2020.12.03 |
백준 알고리즘 2753번 윤년 c++ (0) | 2020.12.03 |
백준 알고리즘 9498번 시험 성적 c++ (0) | 2020.12.03 |
백준 알고리즘 2588번 곱셈 c++ (0) | 2020.12.03 |
백준 알고리즘 10430번 나머지 c++ (0) | 2020.12.03 |
백준 알고리즘 10869번 사칙연산 c++ (0) | 2020.12.03 |
백준 알고리즘 1008번 A/B c++ (0) | 2020.12.03 |
댓글