BASIC Programming/Beginning BASIC/Your First Program< BASIC Programming
Many texts written about programming languages show you a sample program at the beginning of the lesson to help get your feet wet. That is, to become familiar with the syntax and layout of that language. This book is no exception. This sample program will display the text "Hello, world!" to your screen.
Example One (FreeBASIC)
10 Cls 20 Print "Helloooooooooooooooo, world! I'm ready to learn" 30 Sleep 40 End 50 end
Example One (freeBASIC)'
10 Cls 20 print "Hello, world! I'm ready to learn" 30 sleep 40 End 50 end
- Cls stands for 'Clear Screen' and erases everything in the Command Prompt.
- Print displays everything in between the quotations.
- Sleep makes the program wait until the user presses Enter (Return).
- End marks the end of the program (explained later in functions.)
Wikipedia's article on Hello World