#include<stdio.h>
int main()
{
int h,w;
scanf("%d%d",&h,&w);
if(w==h-105)
printf("perfect!");
if(w<h-105)
printf("underweight!");
if(w>h-105)
printf("slightly fat!");
return 0;
}
#include<stdio.h>
int main()
{
int h,w;
scanf("%d%d",&h,&w);
if(w==h-105)
printf("perfect!");
if(w<h-105)
printf("underweight!");
if(w>h-105)
printf("slightly fat!");
return 0;
}
本文标题:练习2-4-4:判断体重(顺序、简单分支结构)
本文链接:https://www.haomeiwen.com/subject/wxirqrtx.html
网友评论