Sunday, April 24, 2016

Published April 24, 2016 by with 0 comment

UVA 11984 - A Change in Thermal U -Solution

#include <stdio.h>
int main()
{
    int t, n=1,c,d;
    float cf;
    scanf("%d",&t);
    while (t--)
    {
        scanf("%d%d",&c,&d);
        cf=(float)c+((float)d*5.0)/9.0;
        printf("Case %d: %0.2f\n",n++,cf);
    }
    return 0;
}
      edit

0 comments:

Post a Comment