


jgreen45 wrote:Take for instance the number sequence 4 5 6 7 8 9. The smallest number i can make is 47 * 56 = 2632.

Gatito wrote:jgreen45 wrote:Take for instance the number sequence 4 5 6 7 8 9. The smallest number i can make is 47 * 56 = 2632.
57 * 46 = ?
Just switch the order a little and it should work ( I think ).

num1=4
num2=5
num3=6
num4=6
a=(str(num1)+str(num2))*(str(num3)+str(num4))
b=(str.num1+str.num2)*(str.num4+str.num3)

num1=4
num2=5
num3=6
num4=6
a= (num1*10 + num2) * (num3*10 + num4)
b= (num1*10 + num2) * (num4*10 + num3)

num1 = '4'
num2 = '5'
num3 = '6'
num4 = '6'
a = int(num1 + num2) * int(num3 + num4)
b = int(num1 + num2) * int(num4 + num3)


Return to Interpreted Languages
Users browsing this forum: No registered users and 0 guests