c/기초
529 : 선택제어문-자가진단2
phantom0219
2019. 1. 8. 10:18
My Solution
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include<stdio.h> int main(void){ int wei=0,hei=0; printf("키와 몸무게를 입력하시오 : "); scanf("%d %d", &hei,&wei); int result = wei + 100 - hei; if(result>0){ printf("%d\nObesity",result); } else{ printf("%d\nno Obesity",result); } return 0; } | cs |
반응형