주소 : https://www.acmicpc.net/problem/1330
1330번: 두 수 비교하기
두 정수 A와 B가 주어졌을 때, A와 B를 비교하는 프로그램을 작성하시오.
www.acmicpc.net
코드:
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
int a, b = 0;
scanf("%d %d", &a, &b);
if (a < b)
printf("<");
else if (a > b)
printf(">");
else
printf("==");
return 0;
}
마무리 : 지금은 수정했지만 왜 #include <string.h> 를 적었지? 아마 ctrl+c 할 때 같이 붙여진 것 같다.
'백준 > C' 카테고리의 다른 글
백준 2475번 : 검증수 [C] (0) | 2022.07.09 |
---|---|
백준 2438번 : 별 찍기 - 1 [C] (0) | 2022.07.07 |
백준 1008번 : A/B [C] (0) | 2022.07.07 |
백준 1000번 : A-B [C] (0) | 2022.07.07 |
백준 1000번 : A+B [C] (0) | 2022.07.07 |