Computer Science, asked by Anonymous, 21 hours ago

1
n = 1
for i in range(1, 5):
print(i, end=" ")
print()
for i in range(n + 1, 5):
print(i, end=" ")
print()
for i in range(n + 2, 5):
print(i, end=" ")
print()
for i in range(n + 3, 5):
print(i, end=" ")
print()

Answers

Answered by aryanwaghmode7
0

Answer:

1 2 3 4 5

2 3 4 5

3 4 5

4 5

Explanation:

first loop prints 1 to 5

secound loop prints 2 to 5

third loop prints 3 to 5

fourth loop prints 4 to 5

Similar questions