PGhosh

new C Code

Apr 4th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a,b,x=1,T,runrate;
  6.     scanf("%d", &T);
  7.     while(T>0){
  8.         scanf("%d %d", &a, &b);
  9.         runrate=(a/b)*6;
  10.         printf("Case %d: %d", x++, runrate);
  11.         T--;
  12.     }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment