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