mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
3 changed files with 55 additions and 3 deletions
@ -1,8 +1,10 @@
|
||||
fn main() { |
||||
let num = 10 |
||||
let num = 5 |
||||
if num > 5 { |
||||
return num |
||||
} else if num <= 5 { |
||||
} else if num < 5 { |
||||
return 1 |
||||
} else { |
||||
return num + 1 |
||||
} |
||||
} |
Loading…
Reference in new issue