Friday, September 27, 2013

uva 11984

//Its a tricky problem... u have to 1st change celsius  to fahrenheit then add and again //change the add to celsius...
#include <stdio.h>
int main()
{
int n,i;
double c,f;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%lf %lf",&c,&f);
f=(5*f)/9;
c=c+f;
printf("Case %d: %.2lf\n",i,c);
}
return 0;
}

No comments:

Post a Comment