Chapter - 2: C Instructions

Wind chill factor is the felt air temperature on exposed skin due to wind. The wind chill temperature is always lower than the air temperature, and is calculated as per the following formlula: wcf = wcf = 35.74 + 0.6215*t + (0.42751*t - 35.75)*pow(v, 0.16);


H
Sections
10
Exercises
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
	float t, v, wcf;
	
	printf("\nEnter the values of temperature and wind velocity: ");
	scanf("%f%f", &t, &v);
	
	wcf = 35.74 + 0.6215*t + (0.42751*t - 35.75)*pow(v, 0.16);
	//pow(a,b) function is used to calculate a^b 
	
	printf("Wind Chill Factor : %f", wcf);
	
	getch();
	return 0;
}

© 2021 Garbage Valuegarbage value logo