Search C Program

Loading...

Convert farenheit to celcius

/* convert farenheit to celcius */

#include<stdio.h>
int main()
{
    float c,f;
    printf("Type farenheit : ");
    scanf("%f",&f);
    c = (f - 32) * 5/9;
    printf("celcius: %f",c);
    return 0;
}

Related Links:
Convert celcius to farenheit
http://cbasicprogram.blogspot.com/2012/01/convert-celcius-to-farenheit-c-program.html

1 comment:

  1. Thanks for the good article.

    Nirmesh tyagi

    ReplyDelete