Problem Y: 零起点学算法21——摄氏温度转换

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

 

posted @ 2018-10-04 19:40  MichaelCecil  阅读(545)  评论(0编辑  收藏  举报