CodeLab Academy 📞 9936 6696
← List Python · Level 4: For loops Code · 40 points ← #322 #324 →

#323. Loop: 1²+2²+...+n²

You get a positive integer n. Use a `for` loop to find **1²+2²+...+n²**. ### Input One integer n (1 ≤ n ≤ 20). ### Output One integer.

Examples

Input
14
Output
1015
Input
19
Output
2470

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