Learn PSeInt step by step.
Use this order to build the foundations cleanly: values first, decisions second, repetition third, then reusable structures.
Variables
A variable gives a name to a value your algorithm needs to remember. Use clear names that describe the meaning of the data.
Algorithm AgeExample Define age As Integer age <- 20 Write age EndAlgorithm
Input and output
Input lets the user provide data. Output shows information back to the user. Practice this before adding decisions.
Algorithm Greeting Define name As String Write "What is your name?" Read name Write "Hello " , name EndAlgorithm
Conditions
Conditions let an algorithm choose between different paths. Ask a clear true-or-false question and decide what should happen in each case.
Algorithm AdultCheck
Define age As Integer
Read age
If age >= 18 Then
Write "Adult"
Else
Write "Minor"
EndIf
EndAlgorithmLoops
Loops repeat a block of instructions. Start with a For loop when you already know how many repetitions are needed.
Algorithm CountToFive
Define i As Integer
For i <- 1 To 5 Do
Write i
EndFor
EndAlgorithmFunctions and reusable logic
Once algorithms become longer, break repeated or meaningful tasks into smaller reusable units. This improves readability and prepares you for structured programming.
A simple practice plan
Write two or three tiny algorithms for each topic before progressing. Then combine the topics in a small project such as a grade calculator, number guessing flow or simple menu.
Useful rule: do not copy the final solution immediately. First write the steps in plain English, turn them into pseudocode, run the logic, then compare your result with an example.
Open practice exercises