Km-to-m

    0

    0

    Mahendra Kumar

    basicMathsbeginner

    Conversion of Kilometer to meter an meter to Kilometer

    # take inputs
    km = float(input('Enter distance in kilometers: '))
    # conversion factor
    conv_fac = 0.621371
    # calculate Miles
    mile = km * conv_fac
    # display result
    print('%0.2f kilometers is equal to %0.2f miles' %(km, mile))
    
    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.