Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double x, z;
  9. double y[11];
  10. y[0] = 25;
  11. for (int i = 1; i < 11; i++) // Заполнение массива числами от 25 до 35 включительно
  12. y[i] = y[i - 1] + 1;
  13. cout << "Enter X, Z: ";
  14. cin >> x >> z;
  15.  
  16. for (int i = 0; i < 11; i++)
  17. {
  18. double j = pow(((1 + y[i]) * sqrt(sin(3 * z)) - (abs(y[i] - x)) / 5), 3);
  19. cout << "Expression " << i+1 << " is equal to: " << j << "\n";
  20. }
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement