#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;
}
2024-01-03 15:59:58
#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;
}
下一篇:Git 的常用操作