mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
12 lines
145 B
Zig
12 lines
145 B
Zig
pub fn main() u8 {
|
|
var i: u8 = 0;
|
|
while (i < @as(u8, 10)) {
|
|
var x: u8 = 1;
|
|
i += x;
|
|
}
|
|
return i - 10;
|
|
}
|
|
|
|
// run
|
|
//
|