Pabon_SEC

A change in thermal unit

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