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
- Host: GitHub
- URL: https://github.com/tharukrenuja/pascal
- Owner: TharukRenuja
- License: mit
- Created: 2022-05-28T01:44:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T04:25:57.000Z (about 3 years ago)
- Last Synced: 2025-01-11T14:23:53.904Z (6 months ago)
- Topics: pascal, pascal-programming, simple-programs, slbots
- Language: Pascal
- Homepage: https://github.com/TharukRenuja/Pascal
- Size: 62.5 KB
- Stars: 8
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
[](https://telegram.dog/SLBotOfficial) [](https://telegram.dog/trtechguide) [](https://www.slbots.org) [](https://github.com/TharukRenuja/Pascal/blob/main/LICENSE) [](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.