

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Program: n = int(input("Enter Positive Number : ")) sum = 0 sum= (n(n+1)(2*n + 1))/ print("The Sum of Series is",sum) Output: Enter Positive Number : 5 The Sum of Series is 55.
n = 99 sum = 0 sum= (n(n+1)(2*n + 1))/ print("The Sum of Series is",sum) Output: The Sum of Series is 328350.