mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
13 lines
167 B
Zig
13 lines
167 B
Zig
pub fn main() u8 {
|
|
var i: u8 = 5;
|
|
i += 20;
|
|
var result: u8 = foo(i, 10);
|
|
return result - 35;
|
|
}
|
|
fn foo(x: u8, y: u8) u8 {
|
|
return x + y;
|
|
}
|
|
|
|
// run
|
|
//
|