Q12.If `n` is a positive integer, what is the value of `count` at the end of execution of the code given below?
```
n = int(input())
count = 0
for x in range(1, n + 1):
for y in range(x + 1, n + 1):
count = count + 1
```
Save
Check
Details
Q12
5 Jun 2022
Q12.If `n` is a positive integer, what is the value of `count` at the end of execution of the code given below?
```
n = int(input())
count = 0
for x in range(1, n + 1):
for y in range(x + 1, n + 1):
count = count + 1
```