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