Given an integer n, how can I convert it to positive if its negative and leave it as is if its positive without using abs (absolute value of the number) or multiplying by the number itself.
New contributor
user2366636 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1