#3541: 請幫小妹我看看為什麼會WA


Fermi (Fermi)

學校 : 臺北市立第一女子高級中學
編號 : 10765
來源 : [114.46.97.79]
最後登入時間 :
2014-10-13 12:11:51

#include <stdio.h>
#include <math.h>
int N,Mycase=0;
int main()
{
    while (EOF!=scanf("%d",&N))
    {
        if (N<=0)
            break;
        printf("Case %d: %.0f\n",++Mycase,ceil(log(N)/log(2.0)));
    }
    return 0;
}


 Why does this code get WA?

 I dont have any idea .

Please help me .  thank you ^^~