CLS
Y = 2
Z = 1
WHILE Z =< 5
Ac = Ac + Y
PRINT Ac
Y = Y + 2
Z = Z + 1
WEND
By Iris

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

1 thought on “CLS<br /> Y = 2<br /> Z = 1<br /> WHILE Z =< 5<br /> Ac = Ac + Y<br /> PRINT Ac<br /> Y = Y + 2<br /> Z = Z + 1<br /> WEND<b”

Leave a Comment