정올(정보올림피아드&알고리즘)/Language_Coder

정올 529 : 선택제어문-자가진단2 (c언어) →CODINGKOOºº

it 킹왕짱 2022. 2. 4. 21:29
728x90

코드

#include<stdio.h>
int main() {
int tall, weight, heavy;
scanf("%d %d", &tall, &weight);

heavy = weight + 100 - tall;
printf("%d\n", heavy);

if (heavy > 0) {
printf("Obesity");
}

return 0;
}

 

문제 http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=166&sca=1050

728x90
728x90