
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

sum = 0 number = read() curr = 0 while (curr < number) { x = read() curr++ if (curr is even) { _OR_ if (x is even) { sum += x } } print(sum)