Saturday, 14 January 2012

Write a Program to Convert KiloMeter into Meter,Centimeter,Inch


 #include
#include
void main()
{
long int kilometer,meter,centimeter;
double inch,feet;
printf("Enter the Value in kilometer=");
scanf("%ld",&kilometer);
meter=kilometer*1000;
centimeter=meter*100;
inch=centimeter/2.5;
//feet=
printf("%ld Kilometer is Equals to %ld meter\n",kilometer,meter);
printf("%ld kilometer is Equals to %ld centimeter\n",kilometer,centimeter);
printf("%ld kilometer is Equals to %lf inch",kilometer,inch);
getch();
}

 

No comments:

Post a Comment