Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- double R,B,runrate, x=1, T;
- scanf("%lf", &T);
- while(T>0){
- scanf("%lf %lf", &R, &B);
- runrate=(R/B)*6;
- printf("Case %0.0lf: %0.2lf", x++, runrate);
- T--;
- }
- if(B==0){
- printf("1");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment