# Program to find sum of series 1+4-9+16-25+.....+N import mathprint("Enter the range of number(Limit):")n=int(input())i=2sum=1while(i<=n):    if(i%2==0):        sum+=pow(i,2)    else:        sum-=pow(i,2)    i+=1print("The sum of the series = ",sum)