Simple Pascal Programs for G.C.E. O/L ICT Examination
A simple pascal code that would print the words "Hello, World!"
program HelloWorld(input,output);
begin
writeln('Hello, World!');
readln();
end.
- Integer - Plus or minus whole numbers
Example : 0, 46, -12
- Real - Plus or minus decimal numbers
Example : 0.0, 25.68
- Boolean
True or False
- Char - Any character of the key board
Example : ‘k’, ‘#’, ‘7‘
- String - Any sequence of characters
Example : ‘ICT’, ‘programming’, ‘Pascal’
- Algebra operators
- Comparison operator
- Logical operators
- AND operator
- OR operator
- NOT operator
- IF Statement
Example Programs
- Nested IF
Example Programs
- Nested IF
- FOR
- FOR – DO Structure
Example Programs
- FOR – DO Loop Structure
Example Programs
- FOR – DO Structure
- WHILE
- WHILE DO Loop Structure
Example Programs
- WHILE DO Loop Structure
- REPEAT UNTIL
- REPEAT UNTIL Structure
Example Programs
- REPEAT UNTIL Structure
Should any be missing kindly let us know at Developers or simply submit a pull request on the readme.