Computer Science, asked by Tridiv, 1 year ago

What will be the value of s if N=20?

Read N
Function sample(N)
s = 0, f = 1, i=1;
Do Until i <= N
f = f * i;
s = s +(i / f);
i=i+1
End Do
return(s);
End Function

Answers

Answered by Nischi123
14

Answer: Infinite Loop

Answered by KajalBarad
1

Answer:

Infinite LOOP

An infinite loop (sometimes called an endless loop ) is a piece of coding that lacks a functional exit so that it repeats indefinitely. In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.

For example, you might have a loop that decrements until it reaches 0.

This will run infinitely because , though n is 20 , it is not included in the logic part  .

Similar questions