2024-07-31 15:24:21 +02:00

10 lines
125 B
Plaintext

main() {
assert neg(-1) == 1
assert neg(1) == -1
assert neg(-256) == 256
assert neg(256) == -256
}
neg(x) {
return -x
}