/* 华氏温度转摄氏*/ #include <bits/stdc++.h> using namespace std; int main(){ int n; while(scanf("%d",&n)!=EOF){ if(n!=32){ double k=5/(9*(n-32)); printf("%0.2f",k); }else{ printf("0.00\n"); } } }
Double click to view unformatted code.