10 lines
125 B
Plaintext
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
|
|
} |