โ Back to Loops
Question 121
Loop: Average of an Array
Loop: Average of an Array
Loop through the array to find the sum, divide by the number of elements, and print the average. Expected output: 25
Expected Output:
25
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.