使用浮点类型值计算铂金的重量

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

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...