Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #include <iostream.h>
- #include <conio.h>
- #include <stdio.h>
- #include <time.h>
- #include <math.h>
- #include <iterator>
- #include <vector>
- #include <string>
- #include <algorithm>
- #include <vcl.h>
- using namespace std;
- #pragma hdrstop
- //---------------------------------------------------------------------------
- #pragma argsused
- float G(int a,int b);
- main()
- {
- int a, b;
- float x,y,u;
- cout << "x, y"<<endl;
- cin >> x >> y;
- cout << "a, b"<<endl;
- cin >> a >> b;
- cout << endl;
- u=G(1.2,x)+G(y,x)-G(2*x-1,x*y);
- cout << u<<endl;
- getch();
- }
- float G(int a,int b)
- {
- float g;
- return g = ((a*a)+(b*b))/((a*a)+2*a*b+3*(b*b)+4);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement