Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- double x, opprun,myrun,bremeaning,bplayed,target,runremeaning,runrate,reqrate;;
- scanf("%lf", &x);
- while(x>0){
- x--;
- scanf("%lf %lf %lf", &opprun, &myrun, &bremeaning);
- bplayed=300-bremeaning;
- runrate=(myrun/bplayed)*6;
- target=opprun+1;
- runremeaning=target-myrun;
- reqrate=(runremeaning/bremeaning)*6;
- printf("%0.2lf %0.2lf", runrate, reqrate);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment