荩忱
2016-01-15 16:52
#include <stdio.h>
{
int age; age = 15;
int height; height = 162;
float weight; weight = 82.5;
char isfat; 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;
}
int main() 你没写
#include <stdio.h> int main() { int age; age = 15; int height; height = 162; float weight; weight = 82.5; char isfat; 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; }
C语言入门
926210 学习 · 20797 问题
相似问题