summaryrefslogtreecommitdiffhomepage
path: root/pascal.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-04 04:26:14 -0700
committerGitHub <noreply@github.com>2024-04-04 04:26:14 -0700
commit4d59048f0df8441e5ad2c2c440e8d54b0e9c11b6 (patch)
treefa2dbdd40da35b3c27f928f1112ea43193a7482e /pascal.html.markdown
parentb38d4437120e700646a45dff68b7c4ff3f7109c0 (diff)
parent327001f58739489b41f6b1f7bbc8be900847b381 (diff)
Merge branch 'master' into patch-2
Diffstat (limited to 'pascal.html.markdown')
-rw-r--r--pascal.html.markdown14
1 files changed, 7 insertions, 7 deletions
diff --git a/pascal.html.markdown b/pascal.html.markdown
index a505a38f..fe00791a 100644
--- a/pascal.html.markdown
+++ b/pascal.html.markdown
@@ -12,7 +12,7 @@ source : [wikipedia](https://en.wikipedia.org/wiki/Pascal_(programming_language)
-to compile and run a pascal program you could use a free pascal compiler. [Download Here](https://www.freepascal.org/)
+To compile and run a pascal program you could use a free pascal compiler. [Download Here](https://www.freepascal.org/)
```pascal
//Anatomy of a Pascal Program
@@ -23,7 +23,7 @@ to compile and run a pascal program you could use a free pascal compiler. [Downl
}
//name of the program
-program learn_pascal; //<-- dont forget a semicolon
+program learn_pascal; //<-- don't forget a semicolon
const
{
@@ -31,7 +31,7 @@ const
}
type
{
- this is where you should delcare a custom
+ this is where you should declare custom
data-types
}
var
@@ -44,11 +44,11 @@ begin
{
area to declare your instruction
}
-end. // End of a main program area should required a "." symbol
+end. // End of a main program area should require a "." symbol
```
```pascal
-//declaring variable
+//When declaring variables
//you can do this
var a:integer;
var b:integer;
@@ -62,7 +62,7 @@ var a,b : integer;
```pascal
program Learn_More;
-//Lets learn about data types and their operations
+//Let's learn about data types and their operations
const
PI = 3.141592654;
@@ -131,7 +131,7 @@ Begin
str := 'apple';
bool := true;
//pascal is not a case-sensitive language
- //arithmethic operation
+ //arithmetic operation
int := 1 + 1; // int = 2 overwriting the previous assignment
int := int + 1; // int = 2 + 1 = 3;
int := 4 div 2; //int = 2 division operation where result will be floored