Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Pascal

Simple Pascal Programs for G.C.E. O/L ICT

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Simple Pascal Programs

Simple Pascal Programs for G.C.E. O/L ICT Examination

Pascal Hello World Example

A simple pascal code that would print the words "Hello, World!"

pascal
program HelloWorld(input,output);

begin
   writeln('Hello, World!');
   readln();
end.

Standard data types in Pascal

  • 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’

Operators We Used

  • Algebra operators
  • Comparison operator
  • Logical operators
    • AND operator
    • OR operator
    • NOT operator

Selection

Repetition

Enjoying with Pascal

Contributors

Should any be missing kindly let us know at Developers or simply submit a pull request on the readme.