Using while loop, print the sum of the series S= 1+ 4+ 9 +….n terms.
Answers
Answered by
0
Explanation:
a=1
b=1
while b<=n:
print(a)
a=a+2
b=b+1
Similar questions