Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int ts;
- cout<<"test cases: "<<endl;
- cin>>ts;
- for(int p = 1; p <= ts; p++){
- cout<<"time: "<<endl;
- double t, velocity;
- cin>>t;
- cout<<"Average velocity: "<<endl;
- cin>>velocity;
- double ans = (t*velocity)/(12.00*1.0);
- printf("Litres needed %0.3lf\n", ans);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment