【HUSTOJ】1003: 温度转换

来源:互联网 发布:js 字符串查找indexof 编辑:程序博客网 时间:2024/04/29 01:59

1003: 温度转换

Time Limit: 1 Sec  Memory Limit: 128 MB

Submit: 443  Solved: 264

原题链接

Description

编一程序,将摄氏温度换为华氏温度。公式为:f=9/5*c+32。其中f为华氏温度,c是摄氏温度。

Input

输入一行,只有一个整数c

Output

输出只有一行,包括1个实数。(保留两位小数)

Sample Input

50

Sample Output

122.00

HINT

Source


#include<stdio.h>int main(){float f,c;scanf("%f",&c);printf("%.2f",9.0/5*c+32);return 0; } 



0 0
原创粉丝点击