题解 | #温度转换#
温度转换
https://www.nowcoder.com/practice/ba83647087b7447783fa2384da6b3d44
#include<bits/stdc++.h> //万能头,或引入#include<iostream> using namespace std; int main() { double f, c; cin >> f; c = 5.0 / 9.0 * (f - 32); cout << fixed << setprecision(3) << c << endl; //保留三位小数 return 0; }