mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
14 lines
196 B
Zig
14 lines
196 B
Zig
pub fn main() u8 {
|
|
var i: u8 = 0;
|
|
while (i < @as(u8, 10)) {
|
|
var x: u8 = 1;
|
|
_ = &x;
|
|
i += x;
|
|
if (i == @as(u8, 5)) break;
|
|
}
|
|
return i - 5;
|
|
}
|
|
|
|
// run
|
|
//
|