Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

5. distance conversion:
Convert a distance from miles to kilometers .there are 5280
feets per mile,12 inches per foot .2.54 centimeters per
inch and 100000centimeters per kilometer

Answer Posted / sindhu

#include<stdio.h>
#include<conio.h>
main()
{
double km,mile;
printf(" enter distance in miles");
scanf("%f",&mile);
km=5280*12*2.54*100000*mile;
printf("
distance in km is %f",km);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between null and nul?

1135


What is typedef?

1396


Differentiate between the = symbol and == symbol?

1276


What is variable in c example?

1045


What is difference between scanf and gets?

1245


What is the difference between mpi and openmp?

1265


How can I invoke another program or command and trap its output?

1078


What is volatile keyword in c?

1025


What are two dimensional arrays alternatively called as?

1162


What is pass by value in c?

1055


Ow can I insert or delete a line (or record) in the middle of a file?

983


What is the use of extern in c?

1079


Define recursion in c.

1260


Is anything faster than c?

997


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3342