+ 1
How to print an positve integer even if the value is negative? (on C)
I have a variable (integer) and I want to print it, but I need to print a positive number even if the variable returns a negative number, how can I do it?
2 Réponses
+ 2
With stdlib.h header you can use "int abs(int x); " function .
+ 2
Thanks for the answers.