Skip to main content
Search
Search This Blog
Programming in Python
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
Sequences
October 03, 2021
Program to print the given series
n = int(input("Enter the nth term = "))
s = 0
for i in range(1,n+1,2):
s = s + (i ** 2)
print("The sum of sequence = ", s )
Comments
Popular Posts
January 25, 2022
Program to generate 8-digit Password
Comments
Post a Comment