Problem ID :a008. 溫度轉換 (*)

New Thread

User 請問哪裡錯了

z71853694 SendIMessage
Howard

a008. 溫度轉換 (*) | From: 140.122.136.123 | Post Date:2014-11-19 11:25:34.0

#include<stdio.h>
#include<stdlib.h>
int main()
{
    float C=0,F=0;
    scanf("%d",&C);
    F=C*9/5+32;
    printf("%d",F);
    return 0;
}
 


文章類型: 一般 | Reply | Back
User Re:請問哪裡錯了

sagit SendIMessage
sagit

a008. 溫度轉換 (*) | From: 192.168.2.216 | Post Date:2014-11-19 13:48:48.0

printf("%f",F); 


文章類型: 一般 | Reply | Back

New Thread

ZeroJudge Forum