write a program to calculate the absolute value of an integer
Answers
Answered by
1
Answer:
Solution to Find Absolute Value of a Number in C:
All you need to do is accept a number whose absolute value you want to find using the scanf() function. Then using the if-else conditional loop check if the number is positive or negative. If the number is positive, then the absolute value remains the same.
Similar questions