#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;
}
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