removed parts I've felt unnecessary.. If anyone wants, I can post it..
My problem is :
If I keep on increasing/ changing the value of good and total, like say 1/1, 2/2... it goes properly..
If bad value changes, like
good = 4, bad=1, total=5,
then the result of (good/total) should be 0.8
It is showing zero!!
what am I missing here ??
Shrinath M Aithal
posted 8 years ago
it tends to save the intermediate result in "int"
i.e I changed the line :
Now I feel so silly, someone tell me how do i delete this message