write a program to find the sum of squares of the first 20 natural numbers in python

Answers 1

Answer:

n = int(input("Enter the number..!!"))

i,sum = 1,0

while (i < n):

   if(i % 2 != 0):

       sum =sum+ i*i

   i+=1

   

print ("Sum of all odd number is ..!! ",sum)  

If you know the answer add it here!

Can't find the answer?

Log in with Google

or

Forgot your password?

I don't have an account, and I want to Register

Choose a language and a region
How much to ban the user?
1 hour 1 day 100 years