# 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))
      

      Python language logo
      Km-to-m

      basicMaths
      beginner

      Conversion of Kilometer to meter an meter to Kilometer

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.