AddO1f

Lab1_1

Oct 11th, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include "math.h"
  2. #include "iostream"
  3.  
  4. int _tmain(int argc, _TCHAR* argv[])
  5. {
  6.     double x,y,z,a,b,c,h;
  7.     cout << "Enter x: ";
  8.     cin >> x;
  9.     cout << "Enter y: ";
  10.     cin >> y;
  11.     cout << "Enter z: ";
  12.     cin >> z;
  13.     a=2*cos(x-2/3);
  14.     b=1/2+sin(y)*sin(y);
  15.     c=1+((z*z)/(3-(z*z)/5));
  16.     h=a/b*c;
  17.     cout << "Result h= " << h << endl;
  18. }
Add Comment
Please, Sign In to add comment