问答详情
源自:2-4 基本数据类型

求教啊,,年龄

我这个一直提示年龄不对


提问者:唯我独尊_ 2015-12-31 19:17

个回答

  • 一飞同学
    2016-01-10 12:49:15

    #include <stdio.h>

    int main()

    {

    ing ang = 15;

    lang int =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;    

    }


  • 慕的地8987762
    2016-01-08 16:17:18

    #include <stdio.h>

    int main()

    {

    int age;        age = 15;

    int height;        height = 162;

    float weight;        weight = 82.5;

    char isfat;        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;    

    }


  • 王学舟SUE
    2015-12-31 19:39:54

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

  • yoristraff
    2015-12-31 19:39:32

    什么鬼

  • 王学舟SUE
    2015-12-31 19:37:20

    你问的哪题