CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #714 #716 →

#715. Pattern: Floyd's triangle

You are given n. Print the **Floyd's triangle** pattern of size n, like in the example. Be careful with spaces (spaces at the end of a line do not matter). ### Input One integer n (2 ≤ n ≤ 9). ### Output The pattern.

Examples

Input
5
Output
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
Input
9
Output
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 32 33 34 35 36
37 38 39 40 41 42 43 44 45

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!