RosettaCodeData/Task/Function-definition/Zig/function-definition.zig

9 lines
136 B
Zig

fn multiply(x: i64, y: i64) i64 {
return x * y;
}
//example call
const x: i64 = 4;
const y: i64 = 23;
_ = multipy(x, y); // --> 93