Skip to content

TharukRenuja/Pascal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!"

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

GitHub Contributors Image

SLBots SLBots SLBots MIT license Open Source

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