‘C’ program to accept temperatures in Fahrenheit (F) and print it in Celsius (C) Formula C=5/9(F-32).
C File =>
/* Write a ‘C’ program to accept temperatures in Fahrenheit (F) and print it in Celsius (C) Formula C=5/9(F-32) */
#include<stdio.h>
int main()
{
float c,f;
printf("\n Enter temperature in Fahrenheit : ");
scanf("%f",&f);
c=(5*(f-32))/9;
printf("\n Temperature in Celcius : %f",c);
return 0;
}
Comments
Post a Comment
Please do not enter any spam link in message.