Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> // std::cout, std::fixed
- #include <iomanip> // std::setprecision
- int main () {
- int a, b, c;
- double f;
- cin>>a;
- for(int i = 0 ; i < a; i++){
- cin>>b>>c;
- f = a / (double) b;
- cout << fixed;
- cout << setprecision(2) << f << '\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement