mult multiplies the first and second parameter and returns result

mult(x, y)

Arguments

x

first value for multiplication

y

second value for multiplication

Value

the result of x multiplied by y

Details

This function does the same operation as * but by recursively adding values

Examples

mult(2,3)
#> [1] 6