# Calculate the distance between two cities from kilometers to meters, centimeters, feet and inches using C program

Input the **distance between two cities in kilometers**, we have to **calculate the distance in meters, feet, and inches**.

In the below program, we are taking input of the distance between two cities in kilometers and converting them into meters, centimeters, feet, and inches.

For Example: If there are two cities "Gwalior" and "Delhi", their distance is 500 kilometers, after converting the distance from a kilometer, the distance value will be: 500000 meters, 1640420 feet, 19685050 inches, and 50000000 centimeters.

**Here are the formulas:**

Meter = km * 1000
Feet = km * 3280.84
Inches = km * 39370.1
Centimeter = km * 100000

## C program to convert distance from km to meters, feet, inches, and, centimeters

need an explanation for this answer? contact us directly to get an explanation for this answerOutput