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

Popular posts from this blog

Q: The length & breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate area & perimeter of the rectangle and area & circumference of the circle.

Q: If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits. (Hint: Use the modulus operator ‘%’)