#include<stdio.h>
#include<conio.h>
int main(void)
{
clrscr();
float km,meter,feet,inche,centimeter;
printf("Please enter distance between two city (KM) : ");
scanf("%f",&km);
meter=km*1000;
centimeter=meter*100;
inche=centimeter*2.54;
feet=inche*12;
printf("Distance in meter %.2f m \n",meter);
printf("Distance in centimeter %.2f cm",centimeter);
printf("Distance in inche %.2f in \n",inche);
printf("Distance in feet %.2f ft \n",feet);
getch();
return 0;
}
#include<conio.h>
int main(void)
{
clrscr();
float km,meter,feet,inche,centimeter;
printf("Please enter distance between two city (KM) : ");
scanf("%f",&km);
meter=km*1000;
centimeter=meter*100;
inche=centimeter*2.54;
feet=inche*12;
printf("Distance in meter %.2f m \n",meter);
printf("Distance in centimeter %.2f cm",centimeter);
printf("Distance in inche %.2f in \n",inche);
printf("Distance in feet %.2f ft \n",feet);
getch();
return 0;
}
0 comments:
Post a Comment