The distance between two cities (in Kilometer) is input through the keyboard. Write a program to convert and print this…