Write a program to converts the given Temperature from Fahrenheit to Celcius and vice versa.


#include<stdio.h>
#include<conio.h>

main ()
{
float temp_c, temp_f;


printf ("Enter the value of Temperature in Celcius: ");

scanf ("%f", &temp_c);

temp_f = (1.8 * temp_c) + 32;

printf ("The value of Temperature in Fahreinheit is: %f", temp_f");
getcg();
}

No comments:

Post a Comment