#include <stdio.h>
int main(void)
{
float weight;
float value;
printf("Are you worth your weight in platinum?\n");
printf("Let's check it out.\n");
printf("Please enter your weight in pounds:15.00");
scanf("%f",&weight);
value = 1700.0 * weight * 14.5833;
printf("Your weight in platinum is worth $%.2f.\n",value);
printf("You are easily worth that! If platinum prices drop,\n");
printf("eat more to maintain your value .\n");
return 0;
}
我按照书本输入了数值
结果结果还是没有下面的内容,如下
请问有没有大佬能教教我
标签:platinum,程序运行,weight,3.1,value,worth,Plus,printf,your From: https://blog.csdn.net/qiuyu123453/article/details/140747884