基础编程题目集 7-6 混合类型数据格式化输入 (5分)

在这里插入图片描述

#include <stdio.h>
int main()
{
    char c;
    int b;
    float a, d;
    scanf("%f %d %c %f", &a, &b, &c, &d);
    printf("%c %d %.2f %.2f", c, b, a, d);
    return 0;
}
发布了287 篇原创文章 · 获赞 117 · 访问量 8951

猜你喜欢

转载自blog.csdn.net/qq_44458489/article/details/105377241
今日推荐