1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! # Basic Calculation Crate
//! This crate consists of mathematical operations
//!
///ADDITION
///# EXAMPLES
///
/// ```
/// let (x,y) = (5,4);
/// let ans = advance_rust::file3::add(x,y);
/// assert_eq!(9,ans);
/// ```
/// # Real life Example
///
/// 5 + 4 = 9
///
///MULTIPLICATION
///# EXAMPLES
///
/// ```
/// let (x,y) = (6,4);
/// let ans = advance_rust::file3::mul(x,y);
/// assert_eq!(24,ans);
/// ```
/// # Real life Example
///
/// 6 * 4 = 20
///
///SUBTRACTION
///# EXAMPLES
///
/// ```
/// let (x,y) = (5,4);
/// let ans = advance_rust::file3::sub(x,y);
/// assert_eq!(1,ans);
/// ```
/// # Real life Example
///
/// 5 - 4 = 1
///
///DIVISION
///# EXAMPLES
///
/// ```
/// let (x,y) = (20,4);
/// let ans = advance_rust::file3::div(x,y);
/// assert_eq!(5,ans);
/// ```
/// # Real life Example
///
/// 20 / 4 = 5
///
///REMAINDER
///# EXAMPLES
///
/// ```
/// let (x,y) = (10,3);
/// let ans = advance_rust::file3::rem(x,y);
/// assert_eq!(1,ans);
/// ```
/// # Real life Example
///
/// 10 % 4 = 1 (remainder)
///