count = 0 for i in range(1, 5): for j in range(1, i + 1): if j % 2 == 0: count += 1 print(count)
3
4
6
10