CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #949 #951 →

#950. Row n of Pascal's triangle

Find the **Row n of Pascal's triangle**. ### Input One integer n (0 ≤ n ≤ 30). Row 0 is `1`. ### Output Answer.

Examples

Input
16
Output
1 16 120 560 1820 4368 8008 11440 12870 11440 8008 4368 1820 560 120 16 1
Input
10
Output
1 10 45 120 210 252 210 120 45 10 1

💡 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!