​格式化输出

#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;

}