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
Explain what is the difference between null and nul?
What is typedef?
Differentiate between the = symbol and == symbol?
What is variable in c example?
What is difference between scanf and gets?
What is the difference between mpi and openmp?
How can I invoke another program or command and trap its output?
What is volatile keyword in c?
What are two dimensional arrays alternatively called as?
What is pass by value in c?
Ow can I insert or delete a line (or record) in the middle of a file?
What is the use of extern in c?
Define recursion in c.
Is anything faster than c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?