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
Why do we use pointer to pointer in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the difference between far and near ?
hi, which software companys will take,if d candidate's % is jst 55%?
Which is better malloc or calloc?
Write a C program in Fibonacci series.
difference between object file and executable file
When is a null pointer used?
What is the use of #define preprocessor in c?
List the different types of c tokens?
Why is c used in embedded systems?
Can you think of a logic behind the game minesweeper.
What is file in c language?
What are types of functions?