Advertisement
Robruizr

3051

Aug 29th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>     // std::cout, std::fixed
  2. #include <iomanip>      // std::setprecision
  3.  
  4. int main () {
  5.   int a, b, c;
  6.   double f;
  7.   cin>>a;
  8.   for(int i = 0 ; i < a; i++){
  9.     cin>>b>>c;
  10.     f = a / (double) b;
  11.     cout << fixed;
  12.     cout << setprecision(2) << f << '\n';
  13.   }
  14.   return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement