A practical path from zero

Learn PSeInt step by step.

Use this order to build the foundations cleanly: values first, decisions second, repetition third, then reusable structures.

STEP 01

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
STEP 02

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
STEP 03

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
EndAlgorithm
STEP 04

Loops

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
EndAlgorithm
STEP 05

Functions 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.

STEP 06

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