Function new_project0101::square

source ·
pub fn square(num: i32) -> i32
Expand description

Computes a square of an input number

Examples

Tests

let x = 8;
let y = new_project::square(x);
assert_eq!(y, 64);

Limitations

Some other section