const std = @import("std");
pub fn main() void {
    divmod(8, 3);
    divmod(8, -3);
    divmod(-8, 3);
    divmod(-8, -3);
    divmod(1, 2);
    divmod(1, -2);
    divmod(-1, 2);
    divmod(-1, -2);
}

fn divmod(x: i64, y: i64) void {
    std.debug.print("x={}, y={} => q={} r={}\n", .{ x, y, @divTrunc(x, y), @rem(x, y) });
}
