Need to help for below program correct it..Hi Friends
Please find below logic and i wrote coding those logic. if its not correct means help to correct it.
1) Input is 5 similar size tennis balls, 4 weigh exactly the same and the last one is heavier than other 4.
2) Find the heaviest ball in 3 iteration
printf("enter 5 Size Balls:");
if(Weight[i] > Weight[i+1];
printf("\n%d is Heviest Size",max);