6 lines
145 B
Mojo
6 lines
145 B
Mojo
# probe: what sign does % give with negative operands?
|
|
def main():
|
|
var a = 7
|
|
var m = 3
|
|
print(a % m, (-a) % m, a % (-m), (-a) % (-m))
|