computes the area of a square
Arguments
- l
a numeric that represents the length
- w
a numeric that represents the width
Value
a numeric that is the area of two numbers
Examples
l <- 5
w <- 2
area_2d(l,w)
#> [1] 10
area_2d(0,0)
#> [1] 0
area_2d(2,0)
#> [1] 0