Advertisement
Trapov

s4

Mar 7th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <math.h>
  4. using namespace std;
  5. int main()
  6. {
  7.     cout << fixed << setprecision(5);
  8.     float x,y,buf,c;
  9.     for (x = 3.0; x<=6.0; x+=0.3)
  10.     {
  11.         for ( y = 5.0; y<=7.2; y+=0.2)
  12.         {
  13.             c = (1.0/3.0);
  14.             buf = exp(c*log(x*x)) + 3*y;
  15.             cout << buf << " | x = "<< x << "; y = " << y << endl;
  16.         }
  17.     }
  18.     system("pause");
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement