Skip to content
ExploreMapGamesStoriesComicsVideosStudioPrintablesCode LabJourneys
By age ▾
  • 🧸 Tiny Explorers2–5
  • 🦉 Curious Learners6–8
  • 🔭 Young Investigators9–12
  • 🚀 Trailblazers13–17
👤Parent sign in
Kids Amazing World

A creative learning playground. No ads, no tracking, no chat. Every item is reviewed before it appears.

Explore

  • Explore
  • Learning journeys
  • Surprise me
  • Parent planner

For grown-ups

  • Child safety
  • Privacy
  • Terms (draft)
  • Free & Premium
  • Parent sign in

About this content

Some items in this build are placeholders written for development. Third-party resources are only listed with permission, a license, or an official embed.

← Real Code

➗ Do the math

🤖

Computers are brilliant at maths. Use + - * / for add, take away, times and divide. Brackets work just like in school.

🎯 A garden is 6 wide and 4 tall. Make variables width and height. Print its area (width × height), then on the next line its perimeter (all four sides added up).

Output

Press Run to see what your code prints.

Lesson 3 of 14 · Lesson map · Your code runs safely inside this page and is never sent anywhere.