Q:

C Program to print convert feet to meter

0

C Program to print convert feet to meter.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Solution:

I have used Code:: Blocks compiler for debugging purpose. But you can use any C programming language compiler as per your availability.

#include<stdio.h>
int main()
{
    float meter,feet;

    printf("Enter feet : ");
    scanf("%f",&feet);

    meter = feet / 3.2808399;
    printf("meter: %f",meter);

    return 0;
}

Result:

Enter feet : 50

meter: 15.240000

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Program to convert Celsius to Fahrenheit... >>
<< C Program to perform all arithmetic operations...