Problem
N children each have some candies. A child can share fairly only if they have an even number of candies (divisible by 2).
What is the total number of candies held by children who can share fairly (i.e., those with an even number)?
What is the total number of candies held by children who can share fairly (i.e., those with an even number)?
Input Variables (pre-loaded)
๐ก Drag N and candies of child i from Inputs. Use the remainder block from Math to check even/odd.
Your Output
Result
โ
Run your program to see the result.
Execution Log
Ready. Press โถ Run to start.
Expected Answer
Answer:
?
Hint
Step 0