Welcome to your first hands-on lesson! In this tutorial, you'll write and run your very first iPseudo program. By the end, you'll understand the basic structure of iPseudo code and how to use the IDE.
When you open iPseudo IDE, you'll see several key areas:
The main area where you write your code. It features syntax highlighting, line numbers, and auto-completion to help you code faster.
Below the editor, this is where you see:
Switch between dark and light themes to suit your preference and environment.
Every iPseudo program follows a consistent structure. Here's the anatomy of a basic program:
Algorithm ProgramName
# Your code goes here
# Write statements between Algorithm and Endalgorithm
Endalgorithm
Let's start with the traditional "Hello World" program. This simple program demonstrates the basic structure and how to display output.
Algorithm HelloWorld
Print "Hello, World!"
Endalgorithm
Algorithm HelloWorld
- Declares a program named "HelloWorld"Print "Hello, World!"
- Displays text to the consoleEndalgorithm
- Ends the programComments are notes in your code that help explain what's happening. They're ignored during execution and are just for humans reading the code.
Algorithm HelloWithComments
# This is a comment - it explains what the code does
# Comments start with the # symbol
Print "Hello, World!" # You can also comment after code
# This line won't display because it's just a comment
Endalgorithm
Notice that only the Print statement produces output. All comments are completely ignored.
You can have multiple Print statements to display several lines of output.
Algorithm WelcomeMessage
Print "================================"
Print " Welcome to iPseudo IDE!"
Print " Learn Pseudocode Easily"
Print "================================"
Print "" # Empty line
Print "Let's start coding!"
Endalgorithm
When naming your algorithms, follow these rules:
HelloWorld
- CamelCase (recommended)CalculateSum
- Descriptive and clearProgram1
- Can include numbersMyFirstProgram
- Multiple words combinedHello World
- No spaces allowed123Program
- Can't start with a numberMy-Program
- No hyphensCalculate!Sum
- No special charactersCalculateAverage
is much better than Program1
because it tells you the purpose immediately.
To execute your program in iPseudo IDE:
You can also run your code using the keyboard shortcut: Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac).
If there's a problem with your code, iPseudo will show an error message in the console. Let's look at common mistakes:
# ❌ Wrong - Missing Endalgorithm
Algorithm BrokenProgram
Print "Hello"
# Missing Endalgorithm here!
# ❌ Wrong - "Algoritm" is misspelled
Algoritm MisspelledKeyword
Print "Hello"
Endalgorithm
# ❌ Wrong - Text needs quotes
Algorithm NoQuotes
Print Hello World # Missing quotes around text!
Endalgorithm
Endalgorithm
iPseudo IDE offers several customization options:
Adjust the editor font size to your comfort level (12px - 20px).
Don't lose your hard work! Save your programs regularly:
hello-world.pseudo
)
Your files are saved with the .pseudo
extension, making them easy to identify
and open later.
To open a saved program:
.pseudo
fileLet's put everything together in a more complete program:
Algorithm MyFirstProgram
# =====================================
# My First iPseudo Program
# Author: [Your Name]
# Description: A welcome message program
# =====================================
# Display header
Print "****************************"
Print "* MY FIRST iPSEUDO APP *"
Print "****************************"
Print ""
# Display welcome message
Print "Hello! I just wrote my first program."
Print "This is exciting!"
Print ""
# Display closing message
Print "iPseudo makes coding fun and easy."
Print "Let's learn more!"
Endalgorithm
Component | Syntax | Purpose |
---|---|---|
Algorithm Declaration | Algorithm Name |
Start your program |
End Algorithm | Endalgorithm |
End your program |
Output Text | Print "text" |
Display text |
Comment | # comment |
Add notes/explanations |
Empty Line | Print "" |
Create blank line |
Algorithm
and ends with Endalgorithm
Print
to display text (text must be in quotes)#
and are for documentationIntroduceMyself
that displays your name, age, and favorite hobby using separate Print statements.