Using FOR...NEXT
Using WHILE...WEND
CLS
a = 5
i = 1
WHILE i <= 7
PRINT a;
a = a * 5
i = i + 1
WEND
END
a = 5
i = 1
WHILE i <= 7
PRINT a;
a = a * 5
i = i + 1
WEND
END
Using DO ... LOOP
CLS
a = 5
i = 1
DO WHILE i <= 7
PRINT a;
a = a * 5
i = i + 1
LOOP
END
a = 5
i = 1
DO WHILE i <= 7
PRINT a;
a = a * 5
i = i + 1
LOOP
END
No comments:
Post a Comment
If you have any doubts, Please let me know.