sumDivide: Divide the sum of two numbers by another number

Description Usage Arguments Value Examples

Description

Add together two numbers and divide the answer by a third number.

Usage

1
sumDivide(x, y, z)

Arguments

x

The first of the two numbers to be added.

y

The second of the two numbers to be added.

z

The number by which the sum of x and y should be divided.

Value

The sum of the first two arguments, divided by the third argument.

Examples

1
2
3
4
a <- 12
b <- 24
c <- 4
sumDivide(a, b, c) # Evaluates to 9

ljrendell/testsExample documentation built on May 20, 2019, 2:22 p.m.