Author: Anonymous Language: text
Description: No description Timestamp: 2010-09-04 20:49:30 -0400
View raw paste Reply
  1. ' Data-type Demo
  2. '
  3. ' Description: This is a program that shows
  4. ' how to store different data types into variables.
  5. '
  6. ' Author: Boredom Inc., Brendan
  7. '
  8. ' License: Public Domain
  9.  
  10. ' Declare our variables,
  11. dim age as integer
  12. dim price as single
  13. dim firstName as string
  14. dim lastName as string
  15. dim fullName as string
  16.  
  17. ' Assign values
  18. input "Enter your age: ", age
  19. input "Enter a random price: ", price
  20. input "Enter your name: ", fullname
  21.  
  22. ' output
  23. print "age   = ";age;" years old."
  24. print "price = $";price
  25. print "name  =  ";fullName
  26. print ""
  27. print "I can see why BASIC sucks already."
  28. print "Fantastic. Linebreaks inside of quotes"
  29. print "don't work, either."
  30. print ""
  31. print ""
  32. print "Press any key to exit."
  33. sleep
  34. end
  35.  
View raw paste Reply