mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
13 lines
169 B
Zig
13 lines
169 B
Zig
pub fn main() u8 {
|
|
var i: u8 = 5;
|
|
if (i < @as(u8, 4)) {
|
|
i += 10;
|
|
} else if (i == @as(u8, 5)) {
|
|
i = 20;
|
|
}
|
|
return i - 20;
|
|
}
|
|
|
|
// run
|
|
//
|