Q10.If `n` is a positive integer, then what will be 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
Q10
16 Oct 2022
Q10.If `n` is a positive integer, then what will be 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
```