温度转化
Time Limit:1000MS Memory Limit:65536K
Total Submit:431 Accepted:318
Description
输入华氏温度f,输出对应摄氏温度c保留三位小数
提示c=5*(f-32)/9
Input
输入华氏温度f
Output
输出对应摄氏温度c
Sample Input
100
Sample Output
37.778
Source
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AK1099 {
class Program {
static void Main(string[] args) {
int f = int.Parse(Console.ReadLine());
double c = 5.0 * (f - 32) / 9;
Console.WriteLine(c.ToString("0.000"));
}
}
}