哪里不对啊

来源:2-4 基本数据类型

慕数据2946199

2016-10-02 22:00

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

}


写回答 关注

1回答

  • Include9stdio_h0
    2016-10-02 22:30:43
    已采纳

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

    }

    运行后,正常

    慕数据294...

    非常感谢!谢谢!

    2016-10-04 09:38:01

    共 1 条回复 >

C语言入门

C语言入门视频教程,带你进入编程世界的必修课-C语言

926893 学习 · 21464 问题

查看课程

相似问题