C program to Convert meter to feet

Below is C program to Convert meter to feet.

Program:

/* convert meter to feet */

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

No comments:

Post a Comment