Saturday 5 October 2013

Convert temperature in Celsius to Fahrenheit using C

#include<stdio.h>
main()
{
float celsius,fahrenheit;
printf("nEnter temp in Celsius : ");
scanf("%f",&celsius);
fahrenheit = (1.8 * celsius) + 32;
printf("nTemperature in Fahrenheit : %f \n ",fahrenheit);
}

No comments:

Post a Comment