Tuesday, August 14, 2012

Write a Program How to Convert Km in m,cm,inch and ft.


#include<stdio.h>
#include<conio.h>
void main()
{
float km,m,cm,inch,ft;
clrscr();
printf(“km”);
scanf(“%f”,&km);
m=km*1000;
cm=m*1000;
inch=cm*1000;
ft=inch*1000;
printf(“Your Kilo Meter is %f\n”,km);
printf(“Your Meter is %f\n”,m);
printf(“Your CM  is %f\n”,cm);
printf(“Your Inch is %f\n”,inch);
printf(“Your feet is %f\n”,ft);
getch();
}

No comments:

Post a Comment