Return Negative

Published by Mubashir Hassan in

Create a function that takes a number as an argument and returns negative of that number. Return negative numbers without any change.

Examples

return_negative(4) ➞ -4

return_negative(15) ➞ -15

return_negative(-4) ➞ -4

return_negative(0) ➞ 0

Notes

N/A

Watch a quick demo on how Edabit works.