1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Main function


pub mod my_crate;

/// # Pre export
pub use my_crate::arith_container::increment;
pub use my_crate::arith_container::decrement;
pub use my_crate::arith_container::square;
pub use my_crate::arith_container::double;
pub use my_crate::arith_container::half;

pub fn main(){

    println!("Increment of 5 (5++) = {}", increment(5));
    println!("Decrememt of 5 (5--) = {}", decrement(5));
    println!("Square of 5 (5^2) = {}", square(5));
    println!("Double of 5 (5*2) = {}", double(5));
    println!("Half of 5 (5/2) = {}", half(5));

    println!("{}", square(0));

}