d051

輸入說明 :

輸入僅有一行,含有一個整數 f (-460 ≤ f ≤ 2147483647),代表華氏溫度。

輸出說明 :

輸出計算所得的攝氐溫度,精確到小數點以下三位。

printf可以指定你要要到小數點以下第幾位

#include<stdio.h>
int main()
{
    double degree;
    scanf("%lf",°ree);
    printf("%.3lf",(degree-32)/9*5);
}