Computer Science, asked by putulhembrom69, 2 days ago

1. Using while loop print the sum of the squares of all even numbers between 2 and 40​

Answers

Answered by dakshkumarryanris
1

Answer:

refer to the attachment

Explanation:

pls mark me the brainliest

Attachments:
Answered by Anonymous
1

WAP to print the sum of the squares of all even numbers between 2 and 40 using while loop:

n = 2

s = 0

while n <= 40:

q = n*n

print(q)

s = s + q

n = n + 2

Similar questions