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