Advertisement
mostlabs

9/1

Jan 12th, 2020
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. double f1(double a, double b)
  8. {
  9.  
  10.  
  11.     double f1 = (a + sqrt(b)) / ( b + sqrt(a) );
  12.  
  13.     return f1;
  14.  
  15. }
  16. int main()
  17. {
  18.    
  19.    
  20.     cout << f1(13,7)+f1(15,12)+f1(31,32);
  21.    
  22.    
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement