Sign in Join

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

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Pascal-Learning

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

This Is A Repo Containing Few Programs Written In Pascal Learning.

1 : The legendary Hello World

The hello.pas file is for the legendary hello world print out in pascal

Intended as the first step in pascal introducing one to

  • Precursor derivatives
  • Basic input and Output operations

2 : Declaring Variables and Constants

This File introduces

  • user defined types
  • Basic sentence Syntax
  • using constants

3 : Using Operators and Control Structures

Operators in pascal are

  • Arithmetic
  • Relational
  • Boolean

Basic Control structures are also included

  • if ~ then

  • if ~ then ~ else

  • nested ~ if

  • if ~ then ~ elseif ~ else

    the files include several examples which come in handy

4 : Loops

Include

for ..... do while.... do repeat ....until

Also the files contain loop control statement such as Break and Continue

5 : Sub-Programs

These are modules that perform a task when called by main program

They are Divided into

  1. Functions : Return a single value
  2. Procedures : Dont Display a value