我是初學(xué)者,不知道代碼錯誤,請指正
#include <stdio.h>
int main()
{
?????? int age = 15;
?????? int height = 162;
????? float? 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此類符號在后面會有講解*/
??? return 0;???
}
2017-03-21
是對的呀!我都運行出來了
2017-03-20
年齡:15 歲
身高:162 CM
體重:82.500000 KG
是否屬于肥胖兒童 y
這是輸出結(jié)果。
2017-03-20
沒錯呀!完全正確!