This is a 
 
void main()
{
int m1,m2,m3,m4,m5,sum;
float per;
scanf("%d%d%d%d%d",&m1,&m2,&m3,&m4,&m5);
sum=m1+m2+m3+m4+m5;
per=(sum/500)*100;
printf("\n%f",per);
}
In this program if i run than the result is always 0.000000, but if i take sum 
as a float than the result is correct. Why? I m confuse. Can you explain it?
thankyou
With Regards 
Uday


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

[Non-text portions of this message have been removed]

Reply via email to