mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
13 lines
165 B
Zig
13 lines
165 B
Zig
pub fn main() u8 {
|
|
var i: u8 = 5;
|
|
i -= 3;
|
|
var result: u8 = foo(i, 10);
|
|
return result - 8;
|
|
}
|
|
fn foo(x: u8, y: u8) u8 {
|
|
return y - x;
|
|
}
|
|
|
|
// run
|
|
//
|