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
Write a program of prime number using recursion.
Is it better to use malloc() or calloc()?
using for loop sum 2 number of any 4 digit number in c language
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Differentiate between declaring a variable and defining a variable?
If the size of int data type is two bytes, what is the range of signed int data type?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
Why doesnt that code work?
What is f'n in math?
Write a program to reverse a given number in c language?
What is dynamic variable in c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Between macros and functions,which is better to use and why?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is a memory leak? How to avoid it?