Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. string integ;
  9. double lim[2];
  10. double answer;
  11. int i;
  12. setlocale(0, "");
  13. cout << "Введите пределеы интегрирования" << endl;
  14. for (i = 0; i < 2; i++) {
  15. cin >> lim[i]; cout << endl;
  16. }
  17. cin >> integ;
  18. cout << endl;
  19. cout << integ << endl;
  20.  
  21. cout << "После преобразований получаем sqrt((x^2)+3)" << endl;
  22. //Подставляем значений
  23.  
  24. answer = sqrt(pow(lim[0],2) -pow( lim[1], 2) + 3);
  25. cout << answer << endl;
  26. system("pause");
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement