include <stdio.h>
int main(){
int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年%d岁\n", age);
printf("小明身高%f,%c\n", height, unit);
printf("小明现在在慕课网上学习IT技术");
return 0;
}
要通过验证的话 是IT技术后面加%c 身高后面的%c去掉
#include <stdio.h> int main() { int age = 18; float height = 1.85; char unit = 'm'; printf("小明今年%d岁\n", age); printf("小明身高%f,%c\n", height, unit); printf("小明现在在慕课网上学习IT技术"); return 0; }
开头include前面有个#号,还有书写不规范的问题,注意缩进和全角半角的标点符号,好像就这样了吧