1pub mod grandsection{
2 pub mod section1{
3 pub fn add(input1: i32, input2:i32) -> i32{
4 input1+input2
5 }
6 }
7 pub mod section2{
8 pub fn subtract(input1: i32, input2:i32) -> i32{
9 input1-input2
10 }
11 }
12 pub mod section3{
13 pub fn multiply(input1: i32, input2: i32) -> i32{
14 input1*input2
15 }
16 }
17 pub mod section4{
18 pub fn divide(input1: i32, input2: i32) -> i32{
19 input1/input2
20 }
21 }
22 pub mod section5{
23 pub fn module(input1: i32, input2: i32) -> i32{
24 input1%input2
25 }
26 }
27}
28pub use grandsection::section1::add;
29
30pub use grandsection::section2::subtract;
31
32pub use grandsection::section3::multiply;
33
34pub use grandsection::section4::divide;
35
36pub use grandsection::section5::module;
37