commit a1f5bcc709c770a6e782b097a98d8c682404f683 parent dde864ad56f2aa77e5b8cac641b286212c044702 Author: Amit Dutta <amitdutta4255@gmail.com> Date: Sat, 13 Sep 2025 21:25:24 +0530 Add files via upload Diffstat:
| A | Letusc-exercises/luc1.c | | | 16 | ++++++++++++++++ |
| A | Letusc-exercises/luc1.exe | | | 0 |
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Letusc-exercises/luc1.c b/Letusc-exercises/luc1.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/luc1.exe b/Letusc-exercises/luc1.exe Binary files differ.