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

跪求正确答案

#include <stdio.h>

int main(){

    int age = 18;

float height = 1.85;

char unit = 'm';

printf("小明今年?岁\n", age);

printf("小明身高??\n", height, unit);

printf("小明现在在慕课网上学习IT技术"); 

return 0;

}


提问者:sky178kCr 2015-12-17 18:30

个回答

  • 流浪_老
    2015-12-17 22:08:25
    已采纳

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

  • 红颜未知己
    2015-12-17 22:23:19

    楼上正解

  • Jason333
    2015-12-17 19:09:55

    printf("小明今年%d岁\n", age);

    printf("小明身高%f %c\n", height, unit);


  • RockenRoll
    2015-12-17 19:09:08

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

    }