C program to Convert farenheit to celcius

Below is C program to Convert farenheit to celcius.

Program:

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