artemgf

Букмекеры

May 9th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <cmath>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     double k1,k2,k3;
  8.  
  9.     cin>>k1>>k2>>k3;
  10.  
  11.     cout.setf(ios::fixed);
  12.     cout.precision(0);
  13.  
  14.     cout<<1000.0*k1*k2*k3/(k1*k2+k1*k3+k2*k3);
  15.    
  16.     _getch();
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment