首页 > 其他 > 详细

格式化输出

时间:2021-07-17 18:12:53      阅读:17      评论:0      收藏:0      [点我收藏+]

#include <stdio.h>

int main(void)
{
char name[100];
float cash;
printf("输入名字:");
scanf_s("%s",name,100);
printf("输入金额:");
scanf_s("%f", &cash);
printf("The %s family just may be $%.2f richer!\n", name, cash);
system("pause");
return 0;
}

格式化输出

原文:https://www.cnblogs.com/huqi001/p/15023316.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!