algorithm/dimigo.goorm.io
조건문 - 조건문 수행평가 문제3(놀이기구를 탈 수 있을까?
m0nd2y
2018. 7. 8. 02:28
#include <stdio.h>
int main() {
int a,b;
char c;
scanf("%d %d %c", &a, &b, &c);
if ((a >= 12) || (b >= 130)) printf("놀이기구에 탑승하세요.");
else if (c == 'y') {
printf("놀이기구에 탑승하세요.");
}
else printf("놀이기구에 탑승할 수 없습니다.");
return 0;
}