Information Security Study
[백준] 1001: A-B 본문
#include <stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a-b);
return 0;
}
두 수를 입력받고 차를 출력하는 문제이다.
A+B 문제에서 연산자만 바꿔주면 된다.
'Programming > C' 카테고리의 다른 글
[백준] 10869: 사칙연산 (0) | 2023.09.24 |
---|---|
[백준] 1008: A/B (0) | 2023.08.22 |
[백준] 10998: AxB (0) | 2023.08.21 |
[백준] 1000: A+B (0) | 2023.08.21 |
[백준] 2557: Hello World (0) | 2023.08.21 |