bsc

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

luc007.c (879B)


      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 /* Wind-chill factor is the felt air temperature on exposed skin due to wind.
      8 The wind-chill temperature is always lower than the air temperature, and is
      9 calculated as per the following formula.
     10     wcf = 35.74 + 0.6215t + (0.4275t - 35.75) * v^0.16
     11 Where t is temperature and v is wind velocity. Write a program to receive
     12 values of t and v and calcualate wind-chill factor (wcf). */
     13 /* Let Us C, Chap - 2, Page - 37, Qn No.: G(d) */
     14 
     15 #include <stdio.h>
     16 #include <math.h>
     17 int main()
     18 {
     19     double t, v, wcf;
     20     printf("Enter the temperature and velociy of the wind : ");
     21     scanf("%lf %lf", &t, &v);
     22     wcf = 35.74 + (0.6215 * t) + (((0.4275 * t) - 35.75) * pow(v, 0.16));
     23     printf("\nWind-chill factor (wcf) : %g", wcf);
     24     return 0;
     25 }
© 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