Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. using namespace std;
  4. int main()
  5. {
  6. double calc=0;
  7. int n;
  8. cout << "Enter the number of sequence members: n=";
  9. cin >> n;
  10. for ( int i = n; i>0; i--)
  11. {
  12. calc = sqrt(calc + i);
  13.  
  14. }
  15. cout << calc;
  16. _getch();
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement