#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