Feed Headline Animator

The distances between two cities (in km)is input through the keyboard write a program to convert and print this distance

main( )
{
float km,m ,ft,inc,cm;
printf(“/nEnter the distance b/w two cities in km”);
scanf(“%f”,&km);
m=km*1000;
cm=m*100;
inc=cm/2.54;
ft=inc/12
printf(“/n meter=%f/n centimeter/n %f”,m,cm);
printf(“/n inches=%f/n feet /n %f”,inc,ft);
}

Posted by: Wasim Javed

No comments:

Post a Comment