Tuesday, 29 August 2017

C Program for Converting 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;
}

No comments:

Post a Comment