diff --git a/Examples.md b/Examples.md
index 696d247..c6a19f5 100644
--- a/Examples.md
+++ b/Examples.md
@@ -1358,11 +1358,37 @@ fn main
```
-
+fn main() {
+ fn sum_odd_numbers(up_to: u32) -> u32 {
+ let mut acc = 0;
+ for i in 0..up_to {
+ let addition: u32 = match i%2 == 1 {
+ true => i,
+ false => continue,
+ };
+ acc += addition;
+ }
+ acc
+ }
+ println!("Sum of odd numbers up to 9 (excluding): {}", sum_odd_numbers(9));
+}
```
|
```
+fn main
+ fn sum_odd_numbers(up_to: u32) -> u32
+ let mut acc = 0
+ for i in 0..up_to
+ let addition: u32 = match i%2 == 1
+ true => i
+ false => continue
+ acc += addition
+ acc
+
+ println!
+ "Sum of odd numbers up to 9 (excluding): {}"
+ sum_odd_numbers 9
```
|