|
INPUT "Enter your full name: " fullname$ space% = INSTR(fullname$, " ") PRINT "Your forename is "; LEFT$(fullname$, space%-1) PRINT "Your surname is "; MID$(fullname$, space%+1)
You are awesome!!!
|

|
|
IF CODE$="6ECBN98RJ9S" THENAlso, consider what happens if fullname$ is
PRINT "Good evening Captain ";MID$(fullname$,space%+1);"."
PRINT "We are awaiting your transportation Earth."
ELSE
PRINT "PERMISSION to transport to Earth denied."
ENDIF
" Fred Bloggs "
I used to write code when I was 10 years old and recently thanks to BBC BASIC for Windows I've progressed a lot over the last year. I never really forgotten those codes from way back then. (I'm 36 now) - Thanks Richard!!!
IF AGE% => 18 THEN PRINT "You are older enough to vote." ELSE PRINT "You are too young to vote." ENDIF
IF AGE% = 18 OR AGE% = 21 THEN PRINT "You are either 18 or 21 years old." ELSE PRINT "I am not sure how old you are." ENDIF

|