#include <stdio.h>
int main(void)
{
float weight;
float value; /* platinum equivalent */
printf("Please enter your weight in pounds: ");
/* get input from the user */
scanf("%f", &weight);
value = 1700.0 * weight * 14.5833;
printf("Your weight in platinum is worth $%.2f./n", value);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266481.html