Re: [Tutor] largest palindrome number

2011-08-27 Thread surya k
If you take a close look at my code. for i in range (1,100) : for j in range (i,100) : Temp = palindrome(i*j) here, as the loop goes on, i*j can never become smaller in any case. which is why I think it, as long as PNum gets a new number, its bigger palindrome than the previous.. so,

Re: [Tutor] largest palindrome number

2011-08-27 Thread Emile van Sebille
On 8/27/2011 8:21 AM surya k said... If you take a close look at my code. for i in range (1,100) : for j in range (i,100) : Temp = palindrome(i*j) here, as the loop goes on, i*j can never become smaller Of course it can... i=3 * j=90 is less than i=4 * j=4... Emile

Re: [Tutor] largest palindrome number

2011-08-27 Thread Peter Otten
surya k wrote: If you take a close look at my code. for i in range (1,100) : for j in range (i,100) : Temp = palindrome(i*j) here, as the loop goes on, i*j can never become smaller in any case. which is why I think it, as long as PNum gets a new number, its bigger palindrome

Re: [Tutor] largest palindrome number

2011-08-27 Thread David Rock
* surya k sur...@live.com [2011-08-27 20:51]: snip here, as the loop goes on, i*j can never become smaller in any case. which is why I think it, as long as PNum gets a new number, its bigger palindrome than the previous.. so, at the end of the loop. we'll get largest palindrome number..

[Tutor] largest palindrome number

2011-08-25 Thread surya k
Hi, I'm doing a puzzle where it asked me to find the largest palindrome number formed by the product of two three-digit numbers. They mentioned an example saying that 9009 is the largest palindrome number formed by two two-digit numbers (99 * 91). I've written my code this way.. and I tested it

Re: [Tutor] largest palindrome number

2011-08-25 Thread Hugo Arts
On Thu, Aug 25, 2011 at 6:49 PM, surya k sur...@live.com wrote: Hi, I'm doing a puzzle where it asked me to find the largest palindrome number formed by the product of two three-digit numbers. They mentioned an example saying that 9009 is the largest palindrome number formed by two two-digit