1. Home
  2. /
  3. Pascal
  4. /
  5. Simple Pascal Program

Simple Pascal Program - Pascal Typing CST Test

Loading…

Simple Pascal Program — Pascal Code

A simple Pascal program printing numbers 1 to 5.

# pascal/demo.pas
PROGRAM Counter;
VAR
	i: INTEGER;
BEGIN
	FOR i := 1 TO 5 DO
		WRITELN(i);
END.

Pascal Language Guide

Pascal is a strongly typed, structured programming language designed for teaching good programming practices and building reliable, maintainable software systems. It remains influential in industrial automation, embedded systems, legacy control systems, and safety-critical applications where deterministic behavior is required.

Primary Use Cases

  • ▸Teaching structured programming
  • ▸Developing desktop and toolchain applications (Delphi)
  • ▸Embedded/microcontroller development (Pascal compilers)
  • ▸Legacy industrial system maintenance
  • ▸Scientific and numerical computing (classic Pascal variants)

Notable Features

  • ▸Strong static typing
  • ▸Readable and structured syntax
  • ▸Modular procedures and functions
  • ▸Deterministic compilation and execution
  • ▸Rich ecosystem via Free Pascal and Delphi

Origin & Creator

Created by Niklaus Wirth in 1970 at ETH Zurich.

Industrial Note

Still used in embedded automation devices, older SCADA scripting extensions, and specialized engineering tools based on Delphi frameworks.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher