Sunday, September 30, 2012

python ျဖင့္ မိန္းကေလး အသက္ပုဒ္စာ ေျဖရွင္းျခင္း

forcuslist=[]

for x in range(1, 73):
    for y in range(1, 73):
        for z in range(1, 73):
            if x*y*z==72 and x+y+z==14:
                tem=[x,y,z]
                forcuslist.append(tem)
print (forcuslist)

No comments:

Post a Comment