Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ex1 created by GaganBansal - https://repl.it/NjwU/1
PRINT "Enter the password"
INPUT WORD$
IF WORD$ = "SECRET" THEN
PRINT "permission granted"
ELSE
PRINT "permission denied": GOTO goend
END IF
PRINT "what should I call you"
INPUT name
PRINT "Hi "; name; "! How old are you"
INPUT age
diff = 42 - age
PRINT "I am 42, so "; diff; " years elder than you"
PRINT "where do you live?"
INPUT place$
IF place$ = "Kharghar" THEN
PRINT place$; " is such a nice place. I also live in "; place$
ELSE
PRINT "My friend also live in "; place$
END IF
goend:
PRINT "OK bye"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.