12 lines
227 B
C++
12 lines
227 B
C++
|
|
#include <bits/stdc++.h>
|
|||
|
|
|
|||
|
|
using namespace std;
|
|||
|
|
|
|||
|
|
//注意:计算实数是尽量用double类型,免得丢失精度。
|
|||
|
|
int main() {
|
|||
|
|
double f;
|
|||
|
|
cin >> f;
|
|||
|
|
printf("%.5lf", 5 * (f - 32) / 9);
|
|||
|
|
return 0;
|
|||
|
|
}
|