luc001.c
Problem Statement
luc001.c
Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees.
Source Code
c
#include<stdio.h>
int main() {
float f, c;
printf("Enter the temperature of city in Fahrenheit : ");
scanf("%f", &f);
// formula (F - 32) 5/9
c = ((f - 32) * 5) / 9;
printf("\nTemperature in centigrade : %f", c);
return 0;
}1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
● Author - Amit Dutta · Updated - 12 Dec 2025