absoluteVal

    0

    0

    Mahendra Kumar

    beginnerbasicMaths

    To find the absolute value of a given number : absolute value of 5 = 5 absolute value of (-5) = 5

    # take input
    num = int(input('Enter the integer number: '))
    # display result
    print('Absolute value of number is =',abs(num))
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.