Geography, asked by premachandramr1977, 8 months ago

write a program to convert distance of 5 kilometre into metre centimetre inches and feet​

Answers

Answered by nehar1306
0

Answer:

#include<stdio.h>

#include<conio.h>

void main(){

float km,m,feet,inch,cm;

printf("Enter the distance between two cities(in km) - ");

scanf("%f",&km);

m = km*1000; //since 1km = 1000m

feet= km*3280.84; //since 1km=3280.84feet

inch=km*39370.1; //since 1 km=39370.1inches

cm=km*100000; //since 1km = 100000cm

printf("\nDistance in kilometres = %f ",km);

printf("\nDistance in metres = %f ",m);

printf("\nDistance in feet = %f ",feet);

printf("\nDistance in inches = %f ",inch);

printf("\nDistance in centimetres = %f ",cm);

getch();

}

(in c++)

Similar questions