C program that converts given temperature from Fahrenheit to Celcius.
#include<stdio.h>
#include<conio.h>
void main()
{ float c,f;
clrscr();
printf("Enter the temperature value of Fahrenheit :\n");
scanf("%f",&f);
c=5*(f-32)/9;
printf("Temperature in celcius is:\n%f",c);
getch();
}
Output 👆 |
Comments
Post a Comment