IF THEN ELSE with INPUT in GWBASIC

10 CLS : KEY OFF
20  INPUT "Enter Marks ";m
30 IF m>33 THEN GOTO 40 ELSE GOTO 50
40 PRINT "You are pass"
45 GOTO 20
50 PRINT "You are fail"
55 GOTO 20

Note :- To break the process Ctrl + Pause/Break





Share on Google Plus

About Rana Mehtab Alam

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment