โ Back to Arrays
Question 81
Count Even Numbers in Array
Count Even Numbers in Array
An array nums has been created with the values {10, 15, 20, 25, 30}. Count how many elements are even and print the count in this exact format:
Even count: 3Expected Output:
Even count: 3
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.