luc001.c ​
Metadata ​
- Author — Amit Dutta (amitdutta4255@gmail.com)
- Last updated — 12 Dec 2025
- License — MIT
Problem Statement ​
Problem Statement
Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees.
Source Code ​
Printing the code
To print this file, open it on GitHub and click Raw before printing, or use the Download Raw button above and print directly from that page.
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