zig/doc/langref/mutable_var.zig

12 lines
143 B
Zig

const print = @import("std").debug.print;
pub fn main() void {
var y: i32 = 5678;
y += 1;
print("{d}", .{y});
}
// exe=succeed