CLS Y = 2 Z = 1 WHILE Z =< 5 Ac = Ac + Y PRINT Ac Y = Y + 2 Z = Z + 1 WEND END a. What will be the output of the above program? b. How many times the looping occurs in above program? About the author Iris
Answer:
error is output because
ac=ac+y
you can’t say 1=1+2
4 times it will repeat