Answers for "find no of iterations in python"

0

find no of iterations in python

ps = 1000
print("%12s%18s" % ("Problen Size", "iterations"))
for count in range(5):
  number = 0
  work = 1
  for j in range(ps):
    for k in range(ps):
      number += 1
      work += 1
      work -= 1

  print("%12d%18d" % (ps, number))
  ps *= 2
Posted by: Guest on October-21-2021

Code answers related to "find no of iterations in python"

Python Answers by Framework

Browse Popular Code Answers by Language