An open API service indexing awesome lists of open source software.

https://github.com/tharukrenuja/pascal

Simple Pascal Programs for G.C.E. O/L ICT
https://github.com/tharukrenuja/pascal

pascal pascal-programming simple-programs slbots

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing 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!"
```
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

- IF Statement [``Example Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Pascal%20Codes/IF/)
- Nested IF [``Example Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Pascal%20Codes/IF/Nested%20IF/)

### Repetition
- FOR
- FOR – DO Structure [``Example Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Pascal%20Codes/For/FOR-DO/)
- FOR – DO Loop Structure [``Example Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Pascal%20Codes/For/FOR-DO%20Loop/)
- WHILE
- WHILE DO Loop Structure [``Example Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Pascal%20Codes/While%20DO%20Loop/)
- REPEAT UNTIL
- REPEAT UNTIL Structure [``Example Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Pascal%20Codes/Repeat%20Until/)

#### Enjoying with Pascal
- [``Simple Tools``](https://github.com/TharukRenuja/Pascal/tree/main/Enjoy%20Pascal/Simple%20Tools/)
- [``Prank Programs``](https://github.com/TharukRenuja/Pascal/tree/main/Enjoy%20Pascal/Prank%20Programs/)

### Contributors
![GitHub Contributors Image](https://contrib.rocks/image?repo=TharukRenuja/Pascal)

[![SLBots](https://img.shields.io/badge/SLBotOfficial-Channel-orange?style=style=flat&logo=telegram)](https://telegram.dog/SLBotOfficial) [![SLBots](https://img.shields.io/badge/SLBotOfficial-Support-red?style=flat&logo=telegram)](https://telegram.dog/trtechguide) [![SLBots](https://img.shields.io/badge/SLBots-Website-red?style=flat&logo=CodersRank)](https://www.slbots.org) [![MIT license](https://img.shields.io/badge/License-MIT-blue?style=flat)](https://github.com/TharukRenuja/Pascal/blob/main/LICENSE) [![Open Source](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/TharukRenuja/Pascal)

Should any be missing kindly let us know at [Developers](https://t.me/SLBotOfficial) or simply submit a pull request on the readme.