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
14
Answer: Infinite Loop
Answered by
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
Computer Science,
6 months ago
Physics,
1 year ago
English,
1 year ago
Science,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago