慕数据4172908
2019-09-29 21:38
#include <stdio.h>
int main()
{
int age;
int height;
float weight;
char isfaat;
age = 15;
height = 162;
weight = 82.5;
isfat = 'y';
printf("年龄:%d 岁\n", age);
printf("身高:%d CM\n", height);
printf("体重:%f KG\n", weight);
printf("是否属于肥胖儿童:%c\n", isfat);
/*%d,%f,%c此类符号在后面会有讲解*/
return 0;
}
你char isfat 写错了,写成char isfaat,细心一点?
C语言入门
926020 学习 · 20793 问题
相似问题