mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
6 changed files with 23 additions and 21 deletions
Binary file not shown.
@ -1,11 +1,4 @@ |
|||||||
fn main(n: int) { |
fn main() { |
||||||
_printf("Hello World!\n") |
let x: string = "Hello World\n" |
||||||
|
_printf(x) |
||||||
if n > 2 { |
|
||||||
_printf("Larger than 2\n") |
|
||||||
} else if n == 2 { |
|
||||||
_printf("Is 2\n") |
|
||||||
} else { |
|
||||||
_printf("Less than 2\n") |
|
||||||
} |
|
||||||
} |
} |
Loading…
Reference in new issue