c언어
#include<stdio.h>
int main(){
int T;
int A,B;
scanf("%d",&T);
for(int i = 1; i<=T;i++){
scanf("%d %d",&A,&B);
if(A>0 && B<10){
printf("Case #%d: %d\n",i,A+B);
}
}
return 0;
}
'알고리즘 > 백준' 카테고리의 다른 글
[백준_단계별로 풀어보기] while - 10952번 A+B-5 | c언어 (0) | 2022.01.07 |
---|---|
[백준_단계별로 풀어보기] for - 2439번 별 찍기 - 2 | c언어 (0) | 2022.01.06 |
[백준_단계별로 풀어보기] for - 10950번 A+B-3 | c언어 (0) | 2022.01.06 |
[백준_단계별로 풀어보기] for - 2742번 A+B | c언어 (0) | 2022.01.06 |
[백준_단계별로 풀어보기] for - 2741번 N찍기 | c언어 (0) | 2022.01.06 |