// ๐งโ๐ซ Lesson 1: Your First Output
output("Hello EduBox!");
// ๐ฆ Lesson 2: Variables and Values
box name = "Sky";
box age = 12;
output("Name: " + name);
output("Age: " + age);
// โ Lesson 3: Doing Math
box a = 8;
box b = 3;
box sum = a + b;
box product = a * b;
output("Sum: " + sum);
output("Product: " + product);
// ๐ค Lesson 4: String Fun
box word = "cool";
output(word + " " + word);
// ๐ฅ Lesson 5: Getting User Input
input(name);
output("Hello " + name);
// ๐ Lesson 6: Looping Things
box count = 1;
loop(5) {
output("Count = " + count);
count = count + 1;
}
// ๐ Lesson 7: Conditional Logic
box score = 85;
if (score >= 60) {
output("Pass");
} else {
output("Fail");
}
// ๐ฃ Lesson 8: Comparison Operators
box x = 10;
if (x != 5) {
output("x is not 5");
}
// ๐งฎ Lesson 9: Logical Operators
box age = 16;
box hasID = 1;
if (age >= 18 and hasID) {
output("Allowed");
} else {
output("Denied");
}
// ๐ Lesson 10: While-style Loop with Conditions
box n = 5;
loop(n > 0) {
output("n = " + n);
n = n - 1;
}
// ๐ Final Challenge
input(name);
input(n);
box i = 1;
loop(n > 0) {
output("Hello " + name);
n = n - 1;
}
// ๐งฉ Advanced Lesson 1: Custom Calculator
input(a);
input(b);
box result1 = (a + b) * 2;
box result2 = (a * a + b * b) / (a + b);
output("Double sum: " + result1);
output("Weighted average: " + result2);
// ๐ฐ Advanced Lesson 2: Number Guess Game
box target = 7;
box guess = 0;
loop(guess != target) {
input(guess);
if (guess < target) {
output("Too low");
} else if (guess > target) {
output("Too high");
}
}
output("You guessed it!");
// ๐ง Advanced Lesson 3: Truth Table Evaluator
box A = 1;
box B = 0;
box result = (A or B) and !(A and B);
output("Result = " + result);
// ๐ Advanced Lesson 4: Countdown with Condition
box x = 10;
box done = 0;
loop(x > 0, done == 0) {
output("x = " + x);
x = x - 1;
if (x == 5) {
done = 1;
output("Midway!");
}
}
// ๐งช Advanced Lesson 5: Basic Function Simulation
input(x);
box sq = x * x;
output("Square = " + sq);
if (sq > 100) {
output("Large square");
}
// ๐ Advanced Lesson 6: Loop with Dynamic Count
input(n);
box i = 0;
loop(i < n) {
output("i = " + i);
i = i + 1;
}
// โ๏ธ Advanced Lesson 7: Text Repetition & Framing
input(word);
box count = 1;
loop(5) {
output(">>> " + word + " <<<");
count = count + 1;
}
// ๐งฎ Advanced Lesson 8: Modular Arithmetic Table
input(base);
box i = 1;
loop(10) {
output(i + " % " + base + " = " + (i % base));
i = i + 1;
}
// ๐ฆ Advanced Lesson 9: Multi-condition Filter
input(num);
if (num % 2 == 0 and num > 10) {
output("Even and big");
} else if (num % 2 != 0 and num < 10) {
output("Odd and small");
} else {
output("Doesn't match");
}
// ๐ณ Advanced Lesson 10: Table Generator
input(base);
box i = 1;
loop(10) {
output(base + " ร " + i + " = " + (base * i));
i = i + 1;
}