c언어
#include<stdio.h>
int main(){
int a,b;
while(1){
scanf("%d %d",&a,&b);
if(a==0 && b==0) break;
printf("%d",a+b);
}
return 0;
}
'알고리즘 > 백준' 카테고리의 다른 글
[백준_단계별로 풀어보기] while - 1110번 더하기 사이클 | c언어 (0) | 2022.01.10 |
---|---|
[백준_단계별로 풀어보기] while - 10951번 A+B-4 | c언어 (0) | 2022.01.07 |
[백준_단계별로 풀어보기] for - 2439번 별 찍기 - 2 | c언어 (0) | 2022.01.06 |
[백준_단계별로 풀어보기] for - 11021번 A+B-7 | c언어 (0) | 2022.01.06 |
[백준_단계별로 풀어보기] for - 10950번 A+B-3 | c언어 (0) | 2022.01.06 |