จุดเริ่มต้นและสิ้นสุดใช้คำว่า start stop
การรับข้อมูลใช้คำว่า read input get
ตัวอย่าง
- Read var1,var2,var3
- Input var1,var2,var3
- Get var1,var2,var3
การแสดงผลใช้คำว่า print write output
ตัวอย่าง
- Print var1,var2,var3
- Write var1,var2,var3
- Output var1,var2,var3
การประกาศตัวแปรใช้ตัวแปร set init
ตัวอย่าง
- Set var1,var2,var3 :integer
- Init var1,var2,var3 :integer
- Set var1=10,var2=20,var3=30
- Init var1=10,var2=20,var3=30
การคำนวณใช้คำว่า compute
ตัวอย่าง
- Compute Area=width*height
- Compute Total=price*count
- Compute Sum=n1+n2
การเปรียบเทียบเงื่อนไข if else
ตัวอย่าง
If condition then
sequence
Else
sequence
Endif
การเปรียบเทียบเงื่อนไข if else if
ตัวอย่าง
If condition then
sequence
Else if condition then
sequence
Else if condition then
sequence
Endif
คำสั่งทำซ้ำ while
While condition
sequence
Endwhile
คำสั่งทำซ้ำ for
For iteration bounds
sequence
Endfor
คำสั่งทำซ้ำ do while
Repeat
sequence
Until condition