就是这样。。。。。。。。。。。。。。。。。。
#include <stdio.h>
int main()
{
int age = 15;
int height = 162;
float weight = 82.5;
char isfat = 'y';
printf("年龄:%d%s 15岁\n", age);/*注意还有y*/
printf("身高:%d 162CM\n", height);
printf("体重:%f 82.5KG\n", weight);
printf("是否属于肥胖儿童:%c\n", isfat);
/*%d,%f,%c此类符号在后面会有讲解*/
return 0;
}
#include <stdio.h> int main() { int age = 15; int height = 162; float weight = 82.5; char isfat = 'y'; printf("年龄:%d岁\n", age); printf("身高:%dCM\n", height); printf("体重:%f\n", weight); printf("是否属于肥胖儿童:%c\n", isfat); /*%d,%f,%c此类符号在后面会有讲解*/ return 0; }