Q. Write a program to print absolute value of a number. Absolute value of a number is:


Answer =


num = int(input("Enter a number :-"))
if num >= 0 :
    print(num)
else :
    print(num*-1)
  
  

11 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post