哪里錯(cuò)了呢
#include <stdio.h>
int main()
{
? ? ? ?int age = 15;
? ? ? ? int height = 162;
? ? ? ? int weight = 82.5;
? ? ? ? char isfat = 'y';
? ? printf("年齡:%d 歲\n", age);
? ? printf("身高:%d CM\n", height);
? ? printf("體重:%f KG\n", weight);
? ? printf("是否屬于肥胖兒童:%c\n", isfat);?
? ? /*%d,%f,%c此類符號(hào)在后面會(huì)有講解*/
? ? return 0;? ??
}
2019-10-14
weight應(yīng)該是float類型
2019-10-12
age和height應(yīng)該在一行