PoPL/04_semantics_and_running/examples/arithmetic.ph

17 lines
243 B
Perl

print 1 + 1,
print 10 - 5,
print 5 - 10,
print -5 + 2,
print -5 - 5,
print -5 - -5,
print 2 * 3,
print 2 * -3,
print -2 * 3,
print -2 * -3,
print 10 / 2,
print 10 / -2,
print -10 / 2,
print -10 / -2,
print 2024-04-27 - 5,
print 2024-04-27 + 5