S = 0
i = 2
while i <= 20:
S += i
i += 2
print(S)
Python 3.9
==========
S, I = 0, 2
While i <= 20:
I += 2
S += I
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
S = 0
i = 2
while i <= 20:
S += i
i += 2
print(S)
Python 3.9
==========
S, I = 0, 2
While i <= 20:
I += 2
S += I
print(S)