FOR NEXT LOOP in GWBASIC

10 CLS
20 FOR K = 1 TO 10
30 PRINT K
40 NEXT K

Note:- You can print any thing in line 30 under quotation marks after PRINT statement, and you can also
           change the loop ending in line no 20.


Share on Google Plus

About Rana Mehtab Alam

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment