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
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Can a variable be both static and volatile in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Explain how can you tell whether a program was compiled using c versus c++?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Write the Program to reverse a string using pointers.
What is "Hungarian Notation"?
How do I send escape sequences to control a terminal or other device?
What is the process to generate random numbers in c programming language?
using for loop sum 2 number of any 4 digit number in c language
What is 02d in c?
Why c is a mother language?
What is the purpose of 'register' keyword in c language?