Advertisement
noshin98

uva 11984

Jun 27th, 2016
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int t,i;
  5.     double c,f,F,C;
  6.     while(scanf("%d",&t)==1)
  7.     {
  8.         for(i=1;i<=t;i++)
  9.         {
  10.             scanf("%lf%lf",&c,&f);
  11.  
  12.             F=(c*9)/5+f;
  13.             C=(F*5)/9;
  14.             printf("Case %d: %.2lf\n",i,C);
  15.  
  16.         }
  17.  
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement