Question #174666

Write a program to print the absolute difference between the two given numbers. (Absolute difference is the difference without the negative sign)


Expert's answer

a=int(input("Enter first number:"))
b=int(input("Enter second number:"))


if a>=b:
	print("Absolute Difference is",a-b)


else:
	print("Absolute Difference is",b-a)


Output:








Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS