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


Please Help Members By Posting Answers For Below Questions

a value that does not change during program execution a) variabe b) argument c) parameter d) none

711


Can a variable be both static and volatile in c?

617


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 “****”.

2662


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

1645


Explain how can you tell whether a program was compiled using c versus c++?

594






What is the time and space complexities of merge sort and when is it preferred over quick sort?

682


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)

1639


Write the Program to reverse a string using pointers.

630


What is "Hungarian Notation"?

647


How do I send escape sequences to control a terminal or other device?

624


What is the process to generate random numbers in c programming language?

621


using for loop sum 2 number of any 4 digit number in c language

1747


What is 02d in c?

649


Why c is a mother language?

563


What is the purpose of 'register' keyword in c language?

637