codeup.kr/problemsetsol.php?psid=23
1065
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a%2 == 0)
printf("%d\n", a);
if(b%2 == 0)
printf("%d\n", b);
if(c%2 == 0)
printf("%d\n", c);
return 0;
}
1066
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a%2 == 0)
printf("even\n");
else printf("odd\n");
if(b%2 == 0)
printf("even\n");
else printf("odd\n");
if(c%2 == 0)
printf("even\n");
else printf("odd\n");
return 0;
}
1067
#include <stdio.h>
int main(){
int a;
scanf("%d", &a);
if(a>0)
printf("plus\n");
else
printf("minus\n");
if(a%2==0)
printf("even");
else
printf("odd");
}
1068
#include <stdio.h>
int main(){
int a;
scanf("%d", &a);
if(a >= 90)
printf("A");
else if(a>= 70)
printf("B");
else if(a>= 40)
printf("C");
else
printf("D");
}
1069
#include <stdio.h>
int main(){
char grade;
scanf("%c", &grade);
switch(grade){
case 'A':
printf("best!!!\n");
break;
case 'B':
printf("good!!\n");
break;
case 'C':
printf("run!\n");
break;
case 'D':
printf("slowly~\n");
break;
default :
printf("what?");
}
}
1070
#include <stdio.h>
int main(){
int month;
scanf("%d", &month);
if(month==12 || month <= 2)
printf("winter");
else if(month <=5)
printf("spring");
else if(month <=8)
printf("summer");
else
printf("fall");
}
1071
#include <stdio.h>
int main(){
int num;
while(1){
scanf("%d", &num);
if(num!=0)
printf("%d\n", num);
else
break;
}
}
1071