问答详情
源自:2-5 格式化输出语句

我这哪输入错误了 大师求解!!

#include <stdio.h>
int main(){
    int age = 18;
 float height = 1.85;
 char unit = 'm';
 printf("小明今年18岁\n", age);
 printf("小明身高1.8\n", height, unit);
 printf("小明现在在慕课网上学习IT技术");
 return 0;
}

提问者:Mr_吕 2018-10-10 20:45

个回答

  • Mr_吕
    2018-10-13 15:36:33

    我已经知道了谢谢大家


  • SoulFlare
    2018-10-11 23:00:19

    printf("小明今年18岁%d\n", age);
     printf("小明身高%f%c\n", height, unit);

    这两行


  • qq_评论家_cgnszQ
    2018-10-11 18:36:33

    这个程序是运行没问题的的,可能是在慕课上出现的原因吧

  • 梨花笺
    2018-10-10 22:34:47

    #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;
    }

  • Mr_吕
    2018-10-10 22:16:22

    还是不行


  • 慕圣1337553
    2018-10-10 21:25:01

    #include <stdio.h>
    int main(){
        int age = 18;
     float height = 1.85;
     char unit = 'm';
     printf("小明今年%d岁\n", age);
     printf("小明身高%f米\n", height, unit);
     printf("小明现在在慕课网上学习IT技术");
     return 0;
    }