24.零起点学算法22——华氏摄氏温度转换

#include<stdio.h>
int main()
{
    float f,c;
    while(scanf("%f",&f)!=EOF)
    {
        c=(f-32)*5.0/9;
        printf("fahr=%f,celsius=%f\n",f,c);
    }
    return 0;
}

 

posted @ 2018-09-28 18:06  Estwind  阅读(555)  评论(0编辑  收藏  举报