有人用温度计测量出用华氏法表示的温度(如64ºF)今要求把它转换为以摄氏法表示的温度(如17.8°C)

#include<stdio.h>
int main()
{
    float f,c;
    f=64.0;
    c=(5.0/9)*(f-32);
    printf("f=%f\nc=%f\n",f,c);
    return 0;
 }

猜你喜欢

转载自blog.csdn.net/weixin_44668386/article/details/88088554