mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
13 lines
180 B
Zig
13 lines
180 B
Zig
|
pub fn main() u8 {
|
||
|
var i: u8 = 0;
|
||
|
while (i < @as(u8, 10)) {
|
||
|
var x: u8 = 1;
|
||
|
i += x;
|
||
|
if (i == @as(u8, 5)) break;
|
||
|
}
|
||
|
return i - 5;
|
||
|
}
|
||
|
|
||
|
// run
|
||
|
//
|