commit 0944db32f4f97819416665ce051c8e3ee6929bce parent 8c16b5ef3764637d1a03674e5b8e4c3d4519d91e Author: Amit Dutta <amitdutta4255@gmail.com> Date: Tue, 16 Sep 2025 21:17:35 +0530 Add files via upload Diffstat:
| A | Letusc-exercises/luc001.c | | | 16 | ++++++++++++++++ |
| A | Letusc-exercises/luc001.exe | | | 0 |
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Letusc-exercises/luc001.c b/Letusc-exercises/luc001.c @@ -0,0 +1,16 @@ +/* Temperature of a city in fahrenheit degrees is input through +the keyboard. WAP to convert this temperature into Centigrade +degrees. */ +/* Date : 13 sep, 2025 */ +/* Chapter 1; Page 19; Question NO.: F(a) */ + +#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; +} diff --git a/Letusc-exercises/luc001.exe b/Letusc-exercises/luc001.exe Binary files differ.