info@avatto.com
+91-9920808017
0. Following is a recursive function for computing the sum of integers from 0 to N. function sum(N:integer):integer begin if N=0 then Sum=0 else end; The missing line in the else part is
Sum:=N+Sum(N)
Sum:=N+Sum(N-1)
Sum:=(N-1)+Sum(N+1)
Sum:=(N-1)+Sum(N-1)
You must be logged in to post a comment.
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
You must be logged in to post a comment.