Q: write a program to recive values of T and V and calculate wind chill factor (wcf).
formula to find wind chill factor :
wcf=35.74+0.6215*T+(0.4275*T-35.75)*pow(V,0.16)#include <stdio.h>
#include <math.h>
int main()
{
float T, V, wcf; /* T is temp and V is velocity of air */
printf("enter value of temp T and velocity of air V\n");
scanf("%f%f",&T,&V);
wcf=35.74+0.6215*T+(0.4275*T-35.75)*pow(V,0.16); /*formula to find wind chill factor*/
printf("wcf is %f",wcf);
return 0;
}
-----------------------------------------
output :
enter value of temp T and velocity of air V
50
23
wcf is 43.074802
Comments
Post a Comment