📋 Quick Reference

A comprehensive cheat sheet for iPseudo IDE syntax and keywords.

📝 Program Structure

pseudocode
Algorithm MyProgram
    # Your code here
Endalgorithm

🔤 Variables

# Variable Declaration
Var name = "value"
Variable count = 0
Declare age As Integer

# Constants
Const PI = 3.14159
Constant MAX = 100

# Assignment
name = "new value"
Set 10 To count

📊 Arrays

# Array Declaration
Var numbers[5]

# Array Assignment
numbers[0] = 10
numbers[1] = Input "Enter value:"

# Array Size
Var length = Size(numbers)

# Loop Through Array
For i = 0 To Size(numbers) - 1
    Print numbers[i]
Endfor

🔄 Control Flow

If Statements

If condition Then
    # code
Elseif condition Then
    # code
Else
    # code
Endif

For Loops

For i = 1 To 10
    # code
Endfor

# With Step
For i = 0 To 10 Step 2
    # code
Endfor

While Loops

While condition
    # code
Endwhile

⚡ Functions

Function FunctionName(param1, param2)
    # code
    Return result
Endfunction

# Call function
Var result = FunctionName(5, 10)

💬 Input/Output

# Output
Print "Hello"
Print "Value:", variable

# Input
Var name = Input "Enter name:"
Var age = Input "Enter age:"

🔢 Operators

Arithmetic

+ - * / Mod Div

Comparison

== != < > <= >=

Logical

And Or Not

🎯 Keywords Reference

Keyword Category Description
Algorithm Structure Start of program
Endalgorithm Structure End of program
Var Variable Declare variable
Const Variable Declare constant
If/Then/Else/Endif Control Flow Conditional statements
For/To/Step/Endfor Loops For loop
While/Endwhile Loops While loop
Function/Endfunction Functions Function declaration
Return Functions Return value
Print I/O Output to console
Input I/O Get user input
Size() Array Get array size
Break Control Exit loop
Continue Control Skip iteration

📝 Quick Template

pseudocode
Algorithm MyProgram

# 1. Declare variables
Var myVariable = initialValue

# 2. Get input (if needed)
Var userInput = Input "Prompt:"

# 3. Process data
# Your logic here

# 4. Display output
Print "Result:", result

Endalgorithm