Function double
Source pub fn double(num: i32) -> i32
Expand description
to compute a double of given number
§Examples
let x = 2;
println!(“double is : {}”, cube(x));
output :
square is : 4
§Tests
let n = 5;
let ans = crate_exp::double(n);
assert_eq!(10,ans);
§Limitation
only for i32 type integers
§Other Details
etc etc