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
What is the size of array float a(10)?
write a program to generate address labels using structures?
What is a structural principle?
Explain what is the heap?
How do you view the path?
What does c mean in basketball?
How can I find the modification date of a file?
What is an identifier?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
In a switch statement, explain what will happen if a break statement is omitted?
Is fortran still used today?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Explain what is a 'locale'?
List the different types of c tokens?
Explain the red-black trees?