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