Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Find the average of a list of numbers

Easy

Problem Statement

Find the average of a list of numbers

Sample Input

[10, 20, 30, 40, 50]

Sample Output

The average is: 30

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
fun main() { val numbers = listOf(10, 20, 30, 40, 50) // Add your code here to calculate the average }
Log in or sign up to run or submit your code.Log inSign up
Input
[10, 20, 30, 40, 50]
Expected Output
The average is: 30