bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

luc001.c (553B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* Temperature of a city in fahrenheit degrees is input through
      8 the keyboard. WAP to convert this temperature into Centigrade
      9 degrees. */
     10 /* Chapter 1; Page 19; Question NO.: F(a) */
     11 
     12 #include<stdio.h>
     13 int main() {
     14 	float f, c;
     15 	printf("Enter the temperature of city in Fahrenheit : ");
     16 	scanf("%f", &f);
     17 	// formula (F - 32) 5/9
     18 	c = ((f - 32) * 5) / 9;
     19 	printf("\nTemperature in centigrade : %f", c);
     20 	return 0;
     21 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror