Search C Program

Convert feet to meter

/* 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;
}

Related posts:
Convert meter to feet
http://cbasicprogram.blogspot.com/2012/01/convert-meter-to-feet-c-program.html

2 comments:

  1. use c99 standard and use gcc compiler(linux) if possible.

    int main(void) {

    content

    return0
    }

    ReplyDelete