Professional Documents
Culture Documents
h>
#include<conio.h>
#include<math.h>
#define phi 3.145
int main()
{
float re,v,d,nu,a,g,hf,l,f,q;
}
else if(re>4000)
{
printf("\n flow is turbulent");
printf("\n enter the g value");
scanf("%f",&g);
printf("\n enter the friction loss hf");
scanf("%f",&hf);
f=(2*g*d*hf)/(l*pow(v,2));
printf("\n friction factor,f=%f",f);
}
else if(re>2000 && re<4000)
{
printf("\n flow is transistion");
}
getch();
}