Update Examples
parent
71547d825d
commit
6ec3812148
@ -1381,6 +1381,7 @@ fn main() {
|
|||||||
fn main
|
fn main
|
||||||
fn sum_odd_numbers(up_to: u32) -> u32
|
fn sum_odd_numbers(up_to: u32) -> u32
|
||||||
let mut acc = 0
|
let mut acc = 0
|
||||||
|
|
||||||
for i in 0..up_to
|
for i in 0..up_to
|
||||||
let addition: u32 = match i%2 == 1
|
let addition: u32 = match i%2 == 1
|
||||||
true => i
|
true => i
|
||||||
|
Loading…
Reference in New Issue
Block a user