Skip to main content

Product

Returns the product of two inputs.

Product block

Description​

The Product block returns the product of two inputs. This is a code block from the Math drawer.

Usage​

Returns the product of two inputs.

Syntax​

Inputs in this block:

  • A number
  • A number

Which will be multiplied together.

Example​

This is a model that explores the relationship between turning degrees and circle area. The model calculates the area of the circle drawn using the equation πr². The World trait of the radius is calculated in The World tab given the degrees turned input from the slider. Note that the area is in spaceland square units.

Product example code