On Wed, Nov 17, 2010 at 12:47 PM, Praveen D'Souza <[email protected]>wrote:
> > > from if((counter == 0)||(num[counter] > max)) if i remove > counter==0 it still finds the max..what is the purpose of having > counter ==0???? > > It forces max to initialize to the first number entered. Try entering all negative numbers without the (counter==0); you should get "0" reported for max and that is wrong. -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
