- Joined
- Mar 8, 2010
- Messages
- 86
- Reaction score
- 17
Copy/Pasted from my original thread.
This will be an extremely short tutorial, not much explained tutorial. Lol.
IDE I used:
Get to know it, mess around with it before you start your first program.
(Note!! I won't explain how to use this IDE, since I don't know it very well.)
Please, ignore the highlighting in the code area. Doesn't match Pascal.
This will be an extremely short tutorial, not much explained tutorial. Lol.
IDE I used:
You must be registered to see links
Get to know it, mess around with it before you start your first program.
(Note!! I won't explain how to use this IDE, since I don't know it very well.)
Code:
(*
The 'Hello World!' program.
This is a comment, ignored by the compiler.
Will NOT affect your program at all!
Mainly used for notes.
As you see, it begins with a '( *' and ends with a '* )' (Without spaces!)
*)
{ This is also a comment, again ignored by the compiler. }
program HelloWorld { Where the program begins. }
begin { Where the main program begins. Isn't required, but it's recommended, imo. }
writeln( 'Hello World!' ); { Writes to the console }
readln; { Waits for user input }
end. { The end of the program. }
Please, ignore the highlighting in the code area. Doesn't match Pascal.
Last edited: