Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Basic Learning Program.
- 'This is a comment, nothing on a line after ' will be executed.
- PRINT "This is how you print text :D"
- LET variableName = 5 ' Variables that are integers (numbers without a decimal point) don't have any symbol after them.
- Let stringName$ = "John" 'Notice that strings end in $, so, if a string is named: password, it's: password$
- ' 00 - black 08 - dark grey
- ' 01 - dark blue 09 - light blue
- ' 02 - dark green 10 - light green
- ' 03 - dark cyan 11 - light cyan
- ' 04 - dark red 12 - light red
- ' 05 - dark purple 13 - magenta
- ' 06 - orange brown 14 - yellow
- ' 07 - grey 15 - bright white
- ' These codes are numbers, you can use them to set the text color. COLOR 04 would make dark red text.
- 'Gathering input (only works if the input that you take is a string, I don't know why)
- PRINT "Enter your name:"
- INPUT name$
- PRINT "Your name is: "+name$ ' I think this line works, notice the addition of two strings? Pwnage, I know xD.
Advertisement
Add Comment
Please, Sign In to add comment