tommyroyall

Untitled

Jul 30th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'Basic Learning Program.
  2. 'This is a comment, nothing on a line after ' will be executed.
  3.  
  4. PRINT "This is how you print text :D"
  5.  
  6. LET variableName = 5 ' Variables that are integers (numbers without a decimal point) don't have any symbol after them.
  7.  
  8. Let stringName$ = "John" 'Notice that strings end in $, so, if a string is named: password, it's: password$
  9.  
  10. '           00 - black                    08 - dark grey
  11. '           01 - dark blue                09 - light blue
  12. '           02 - dark green               10 - light green
  13. '           03 - dark cyan                11 - light cyan
  14. '           04 - dark red                 12 - light red
  15. '           05 - dark purple              13 - magenta
  16. '           06 - orange brown             14 - yellow
  17. '           07 - grey                     15 - bright white
  18. ' These codes are numbers, you can use them to set the text color. COLOR 04 would make dark red text.
  19.  
  20. 'Gathering input (only works if the input that you take is a string, I don't know why)
  21. PRINT "Enter your name:"
  22. INPUT name$
  23. 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