GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main Page
  • Help
  • Browse
  • Cookbook
  • Wikijunior
  • Featured books
  • Recent changes
  • Special pages
  • Random book
  • Using Wikibooks
  • Reading room forum
  • Community portal
  • Help out!
  • Policies and guidelines

This view

  • Original page
  • New address

GeezerVison is showing en.wikibooks.org — BASIC Programming/Beginning BASIC/Your First Program - Wikibooks, open books for an open world

< BASIC Programming

Introduction

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.

Program Examples

Example One (FreeBASIC)

10 CLS
20 INPUT " Enter Your Name ", X
30 PRINT X = " YOUR NAME"
40 END

.

Explanation

  1. CLS stands for 'Clear Screen' and erases everything in the Command Prompt.
  2. PRINT displays everything in between the quotations.
  3. INPUT gives input and tell what to do.
  4. END marks the end of the program (explained later in functions.)

External Links

Wikipedia's article on Hello World

Retrieved from "https://en.wikibooks.org/w/index.php?title=BASIC_Programming/Beginning_BASIC/Your_First_Program&oldid=4332623"
Category:
  • Book:BASIC Programming
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.