mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
13 lines
146 B
Zig
13 lines
146 B
Zig
|
pub fn main() u8 {
|
||
|
var i: u8 = 5;
|
||
|
if (i < @as(u8, 4)) {
|
||
|
i += 10;
|
||
|
} else {
|
||
|
i = 2;
|
||
|
}
|
||
|
return i - 2;
|
||
|
}
|
||
|
|
||
|
// run
|
||
|
//
|