1. Using while loop print the sum of the squares of all even numbers between 2 and 40
Answers
Answered by
1
Answer:
refer to the attachment
Explanation:
pls mark me the brainliest
Attachments:
Answered by
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