A quick pascal tutorial for programmers. -By Anman Here is the basic structure of a pascal program. program programname(input,output); begin end. Begin and end. signify the beginning and ending of the program. Variables: There are many types of variables in Pascal. Here are a few. String(non-standard)-Stores an array of characters. char - One character (0-255) int - An integer (0-32675) real - A floating point number(very big) longint - A 32-bit integer(0-4 billion) double - The largest floating point number Variables are declared as follows. var variablename:variabletype; Note: You cannot declare variables inside a begin and end block. Output: Output in Pascal is fairly easy. All output in Pascal is handled in the writeln and write procedures. Example: writeln("Welcome to Pascal"); <-- This line will write Welcome to Pascal and then line-feed. write("Welcome to Pascal"); <-- This line will write Welcome to Pascal. If you wanted to output a variable to writeln or write you would do it like this: writeln("This is" ,nameofvariable ,"Pascal"); Input: Input in Pascal is almost as easy as outputting. All input is handled in two procedures: read and readln. Example: readln(variablename); <--This line will keep reading until you press a line-feed. read(variablename); <--This line will keep reading until you press a key. Let's put this altogether in a program. program inputoutput(input,output); age:integer; begin write("Enter your age: "); readln(age); writeln("Wow I wish I was that old."); write("How old are you really?"); readln(age); writeln("That is what I thought"); end.