问题描述
编写一个程序,输入一个摄氏温度,输出相应的华氏温度。在输出时,保留小数点后面两位。
输入格式:输入只有一个整数,即摄氏温度。
输出格式:输出只有一实数,即相应的华氏温度。
输入输出样例
样例输入
35
样例输出
95.00
#include "stdio.h"
int main()
{
double h, s ;
scanf("%lf", &s);
h = 32+s*1.8 ;
printf("%.2lf\n", h);
return 0 ;
}