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