there are two if statements and not an id else statement. so in first case a is modified and then next if statement is checked against b>a whereas in 2nd case a is not modified and checkd with the same value for the second if statement
On Fri, Apr 15, 2011 at 8:39 PM, priya mehta <[email protected]>wrote: > http://www.ideone.com/IKM57 > > http://www.ideone.com/PmJ7A > there is a minor change between the codes > one works another doesn't > someone please tell the reason > > On Fri, Apr 15, 2011 at 8:38 PM, priya mehta <[email protected]>wrote: > >> http://www.ideone.com/PmJ7A >> >> > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > 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/algogeeks?hl=en. > -- Harshit Gangal Fourth Year Undergraduate Student Dept. of Computer Science JIIT, Noida , India -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. 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/algogeeks?hl=en.
