Search C Program

Convert celcius to farenheit

/* convert celcius to farenheit */

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

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

No comments:

Post a Comment