LogiQuest
Back to Complexity Analysis
20

What is the output of the following code?

count = 0
n = 5
for i in range(n):
    for j in range(i):
        count += 1
print(count)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.