求助大神!!!! 身高那里怎么同时输入数字和单个字符
#include <stdio.h>
int main(){
int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年“age=%d”岁\n", age);
printf("小明身高"height=%f%c"\n", height, unit);
printf("小明现在在慕课网上学习IT技术");
return 0;
}
#include <stdio.h>
int main(){
int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年“age=%d”岁\n", age);
printf("小明身高"height=%f%c"\n", height, unit);
printf("小明现在在慕课网上学习IT技术");
return 0;
}
2019-08-18
举报