Count the number of iterations in the following loops:
(a)
count = 0
while count < n:
count += 1
(b)
for count in range(n):
print(count)
(c)
count = 5
while count < n:
count += 1
(d)
count = 5
while count < n:
count = count + 3
The number of iterations in the given loops are :
(a) n iterations
(b) n iterations
(c) n-5 iterations
(d) [n-6]/3 iterations