Start learning free

LESSON 18 OF 679 · CALCULATIONS WITH NUMBERS

Exercise: Area of Rectangle

Lesson

We created two variables to store the width and the height of a rectangle.

On line 3, use these two variables and an arithmetic operation you just learned to print the area of the rectangle to the console.

STEP 1 OF 1
    Ctrl + Enter to check