LearnPy Hub
← Loops problems
Medium

Every Pair

Read n and print every pair i j with 1 ≤ i < j ≤ n, one per line, in order. Use nested loops.

Input

One integer n ≥ 2.

Output

Lines.

Sample 1

Input
3
Output
1 2
1 3
2 3

Sample 2

Input
2
Output
1 2
solution.py
Output appears here
Every Pair · Python practice problem · LearnPy Hub