Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- float modul = 0.00, f = 0.00, s=0.00;
- float q=0.00,x=0.00,y=0.00,a=2.00,b=2.00;
- float functie(int x,int y)
- {
- if ((abs(x)<=8) && (abs(y) <= 8))
- {
- s = x * x + y * y;
- q= sqrt(s);
- cout << sin(q)<<endl;
- f = a * b*q*sin(q);
- cout << f<<endl;
- }
- else f =0;
- return f;
- }
- int main()
- {
- cin >> x >> y;
- f = functie(x,y);
- cout << f;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement