fork download
  1. x=3
  2. counter=0
  3. iterations=0
  4. for s in range(1,10):
  5. for d in range(10):
  6. for j in range(10):
  7. iterations+=1
  8. if s+d+j==x:
  9. counter+=1
  10. print(counter,": ",s,d,j,sep='')
  11. print("iterations=",iterations)
Success #stdin #stdout 0.04s 9392KB
stdin
Standard input is empty
stdout
1: 102
2: 111
3: 120
4: 201
5: 210
6: 300
iterations= 900