Tuesday, March 7, 2017

Temprature converter Celsius to Fahrenheit

               Temprature converter Celsius to Fahrenheit                   





#include<stdio.h>
#include<conio.h>
int fahrenheit(float);
int main()
{
    float x;
    printf("enter temperature in Celsius :");
    scanf("%f",&x);
    fahrenheit(x);
    getch();
}
int fahrenheit(float a)
{
    float y;
    y = a * 1.8 +32;
    printf("TEMPERATURE IS EQUAL TO:%.3f",y);
}

No comments:

Post a Comment