calculator

Simple arithmetic functions

Functions

pub fn add(x: Int, y: Int) -> Int

Add two numbers together

pub fn divide(x: Int, y: Int) -> Int

Divide the first arg by the second arg

pub fn multiply(x: Int, y: Int) -> Int

Multiply two numbers

pub fn subtract(x: Int, y: Int) -> Int

Subtract the second arg from the first arg

Search Document