C program to Convert celcius to farenheit

Below is C program to Convert celcius to farenheit.

Program:

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

No comments:

Post a Comment