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:








LATEST TUTORIALS
APPROVED BY CLIENTS