码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2018-10-04 20:28:34      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:problem   oat   int   class   bsp   turn   print   div   scan   

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

 

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

标签:problem   oat   int   class   bsp   turn   print   div   scan   

原文地址:https://www.cnblogs.com/chenlong991223/p/9742929.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!