mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
17 lines
232 B
Zig
17 lines
232 B
Zig
|
pub fn main() u8 {
|
||
|
var i: u8 = 11;
|
||
|
if (i < @as(u8, 4)) {
|
||
|
i += 10;
|
||
|
} else {
|
||
|
if (i > @as(u8, 10)) {
|
||
|
i += 20;
|
||
|
} else {
|
||
|
i = 20;
|
||
|
}
|
||
|
}
|
||
|
return i - 31;
|
||
|
}
|
||
|
|
||
|
// run
|
||
|
//
|