Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program lab;
- var
- count: integer;
- function root(n: integer): real;
- begin
- if n=1 then
- root := 1.0
- else
- root := sqrt(n+root(n-1));
- end;
- begin
- readln(count);
- write('Answer is ');
- writeln(root(count));
- readln;
- end.
Add Comment
Please, Sign In to add comment