C Program to Distance and Length Conversion

	#include <stdio.h>
	 
	int main() 
	{
		int KM;
		float M,Feet, Inch;
		printf("Enter the Distance In KM :");
		scanf("%d",&KM);
		M = KM * 1000;
		Feet = M * 3.280;
		Inch = Feet * 12;
		printf("Distance in Meter :%f\n",M);
		printf("Distance in Feet :%f\n",Feet);
		printf("Distance in Inch :%f" ,Inch);
		
		return 0;
	}

Output

	Enter the Distance In KM :12
	Distance in Meter :12000.000000
	Distance in Feet :39360.000000
	Distance in Inch :472320.000000

Compile and Run Online

Subscribe For Daily Updates