第30285题 单选题
以下C++代码运行时输入`3 4.5`,输出结果正确的是?
#include <cstdio>
int main() {
    int a = 0;
    float b = 0;
    scanf("%d%f", &a, &b);
    printf("a=%d,b=%.1f", a + 2, b * 2);
    return 0;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析