Skip to content
Examples

35 programs to explore

From “Hello World” to a hotel food order with GST. Open one, press Run, then change it and make it yours. Each opens in its own tab, so your own work stays open too.

Beginner

Hello World

Ask for a name and greet the user.

Input & outputOpen
Beginner

Add Two Numbers

Ask for two numbers and show the sum.

ValuesOpen
Beginner

Birthday Card

Greet someone and work out their age next year.

Joining textOpen
Beginner

Rectangle Area

Work out the area and perimeter of a rectangle.

MathsOpen
Beginner

Temperature Converter

Turn °C into °F with a formula.

MathsOpen
Beginner

Minutes to Hours

Split minutes into hours and minutes using %.

RemaindersOpen
Beginner

Swap Two Values

Swap two values using a helper value.

Changing valuesOpen
Beginner

Even or Odd

Check whether a number is even or odd.

DecisionsOpen
Beginner

Pass or Fail

Check if a mark is 40 or more.

DecisionsOpen
Beginner

Adult or Minor

Ask for an age and say whether they're an adult.

DecisionsOpen
Intermediate

Count to 10

Use a repeat loop to count from 1 to 10.

LoopsOpen
Intermediate

Traffic Light

Say what to do for each light colour.

Many decisionsOpen
Intermediate

Calculator

Add, subtract, multiply or divide, with a divide-by-zero check.

Many decisionsOpen
Intermediate

Grade Calculator

Turn marks into a grade from A to F.

Many decisionsOpen
Intermediate

Leap Year

Use && and || to check for a leap year.

And / orOpen
Intermediate

Largest of Three

Keep track of the biggest number so far.

DecisionsOpen
Intermediate

Times Table

Print any times table from 1 to 10.

LoopsOpen
Intermediate

Star Triangle

Grow a line of stars each time round the loop.

LoopsOpen
Intermediate

Can I Vote?

Check two things at once with &&.

And / orOpen
Intermediate

BMI Calculator

Calculate BMI, round it, and say what it means.

Maths & decisionsOpen
Intermediate

Day of the Week

Turn a number into a day name with one Choose block.

ChooseOpen
Intermediate

Café Menu

Choose an item, set its price, then work out the bill.

ChooseOpen
Intermediate

Add Up the Numbers

Count from 1 to any number, adding as you go.

Count loopOpen
Intermediate

Rocket Launch

Count down from 10 to 1 with a step of -1.

Count loopOpen
Intermediate

Dice Roller

Roll five dice, keep them in a list, find the best roll.

Random & listsOpen
Advanced

Hotel Food Order

Order dishes from a menu, then get a bill with discount and GST.

Loops + decisionsOpen
Advanced

Hotel Room Booking

Book a room: nightly rate, extra guests, long-stay discount and tax.

Many decisionsOpen
Advanced

Shopping Cart & Coupons

Add up a cart, apply a coupon code, and work out delivery.

Loops + decisionsOpen
Advanced

ATM Machine

Withdraw cash with checks for balance and ₹100 notes.

Many decisionsOpen
Advanced

Guess the Number

Three tries to guess a secret number, with too-high/too-low hints.

Loops + decisionsOpen
Advanced

Prime Number Check

Count a number's divisors to see if it's prime.

Loops + decisionsOpen
Advanced

Guessing Game

Guess a random number with higher/lower hints until you get it.

Repeat WhileOpen
Advanced

Shopping List

Build a list from answers, then print it with For Each.

ListsOpen
Advanced

Class Marks

Add a mark to a list, then find the average, highest and lowest.

Lists & functionsOpen
Advanced

Word Tools

Capitals, letter count, backwards, and a palindrome check.

Text & For EachOpen