Q5.Consider the following snippet of code. What will the output be?
```
result = 0
for i in range(1, 4):
for j in range(1, 4):
if i == j:
continue
if i + j > 4:
break
result += i + j
print(result)
```
Save
Check
Details
Q5
13 Jul 2025
Q5.Consider the following snippet of code. What will the output be?
```
result = 0
for i in range(1, 4):
for j in range(1, 4):
if i == j:
continue
if i + j > 4:
break
result += i + j
print(result)
```