Advertisement
Agrovein

Untitled

May 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2. #include <iostream.h>
  3. #include <conio.h>
  4. #include <stdio.h>
  5. #include <time.h>
  6. #include <math.h>
  7. #include <iterator>
  8. #include <vector>
  9. #include <string>
  10. #include <algorithm>
  11. #include <vcl.h>
  12. using namespace std;
  13. #pragma hdrstop
  14. //---------------------------------------------------------------------------
  15. #pragma argsused
  16.  
  17. float G(int a,int b);
  18.  
  19. main()
  20. {
  21.         int a, b;
  22.     float x,y,u;
  23.         cout << "x, y"<<endl;
  24.     cin >> x >> y;
  25.     cout << "a, b"<<endl;
  26.     cin >> a >> b;
  27.     cout << endl;
  28.         u=G(1.2,x)+G(y,x)-G(2*x-1,x*y);
  29.         cout << u<<endl;
  30.         getch();
  31. }
  32.  
  33. float G(int a,int b)
  34. {
  35.     float g;
  36.     return  g = ((a*a)+(b*b))/((a*a)+2*a*b+3*(b*b)+4);
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement