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