SHARE
TWEET

Untitled

a guest Feb 20th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. float modul = 0.00, f = 0.00, s=0.00;
  5. float q=0.00,x=0.00,y=0.00,a=2.00,b=2.00;
  6. float functie(int x,int y)
  7. {
  8.     if ((abs(x)<=8) && (abs(y) <= 8))
  9.     {
  10.         s = x * x + y * y;
  11.         q= sqrt(s);
  12.         cout << sin(q)<<endl;
  13.         f = a * b*q*sin(q);
  14.         cout << f<<endl;
  15.     }
  16.     else f =0;
  17.     return f;
  18. }
  19. int main()
  20. {
  21.     cin >> x >> y;
  22.     f = functie(x,y);
  23.     cout << f;
  24.     system("pause");
  25.     return 0;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top