Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t,i;
- double c,f,F,C;
- while(scanf("%d",&t)==1)
- {
- for(i=1;i<=t;i++)
- {
- scanf("%lf%lf",&c,&f);
- F=(c*9)/5+f;
- C=(F*5)/9;
- printf("Case %d: %.2lf\n",i,C);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement