C program to Convert feet to meter

Below is C program to Convert feet to meter.

Program:

/* convert feet to meter */

#include<stdio.h>
int main()
{
    float m,f;
    printf("Type feet : ");
    scanf("%f",&f);
    m = f / 3.2808399;
    printf("meter: %f",m);
    return 0; 
}

No comments:

Post a Comment