Tuesday, 7 April 2015

C Program to Convert °Celsius to °Fahrenheit.

#include<stdio.h>
#include<conio.h>
main()
{
                float celsius,fahrenheit;
                clrscr();
                printf("Enter temperature in Celsius\n");
                scanf("%f",&celsius);
                fahrenheit=(9.0/5.0)*celsius+32.0;
                printf("\n%f\xf8 Celsius = %f\xf8 Fahrenheit",celsius,fahrenheit);
}

No comments:

Post a Comment