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

Programming Exercises

Count the vowels in a string

Easy

Problem Statement

Count the vowels in a string

Sample Input

"hello world"

Sample Output

Number of vowels: 3

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
fun main() { val input = "hello world" // Add your code here to count the vowels }
Log in or sign up to run or submit your code.Log inSign up
Input
"hello world"
Expected Output
Number of vowels: 3