728x90
문제: https://www.acmicpc.net/problem/10952
10952번: A+B - 5
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
코드:
더보기
#include <stdio.h>
int main() {
int a, b;
while(1){
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
}
printf("%d \n", a + b);
}
return 0;
}
728x90
'Study > Programming' 카테고리의 다른 글
[알고리즘]Palindrome Algorithm / 팰린드롬 알고리즘 + 예시문제 (4) | 2024.07.24 |
---|---|
블록체인 (BlockChain) (0) | 2024.05.14 |
Tistory 꾸미기 - 벚꽃 / Web (0) | 2024.03.29 |
BOJ 1676번 : 팩토리얼 0의 개수 / C언어 (0) | 2024.03.29 |
BOJ 2438번 : 별 찍기 - 1 / C언어 (0) | 2024.03.28 |