C Program for Conversion of temperature ('C to F) by G Krishna Chauhan

#include<stdio.h>
#include<conio.h>
int main() 
{
 float celsius, fahrenheit;

 printf("\nEnter temp in Celsius : ");
 scanf("%f", &celsius);

 fahrenheit = (1.8 * celsius) + 32;
 printf("\nTemperature in Fahrenheit : %f ", fahrenheit);

 return (0);
}

No comments:

Post a Comment