MY name is ruhul amin

ISLAMIC UNIVERSITY OF KUSHTIA

Wednesday, March 6, 2013

uva solve problem 11984

#include<stdio.h>
int main()
{
    int i,c,d,n;
    double f;
    while(scanf("%d",&n)==1)
    {
        if(n==0)
        break;
        for(i=1;i<=n;i++)
        {
            scanf("%d%d",&c,&d);
            f=1.8*(double)c+32;
            f=f+d;
            f=f-32;
            f=f*5;
            f=f/9;
            printf("Case %d: %.2lf\n",i,f);
        }
    }
    return 0;
}

No comments:

Post a Comment