Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in FOR?

Status
Not open for further replies.

eamc

Technical User
Sep 3, 2001
83
US
When I write:
for i in range (0,1296,1):
for j in range (0,648,1):
for k in range (0,648,1):
if i*j*k == 1296:
print i,j,k

The results are missing 1296 1 1, 648 1 2, 648 2 1, etc. What am I doing wrong??

Edwin M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top