On Wed, Nov 17, 2010 at 12:47 PM, Praveen D'Souza <dsouzagprav...@gmail.com>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 javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en