I have this numbers a = 7 , b= 9
Now I want to subtract the two numbers.
b - a = 2. Now that is ok
but a -b = -2
But I only want to know the diff i.e 2 not negative or positive like we have mod operator
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should do it
keeping only 1 solution as suggested by Zero Piraeus