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

Programming Exercises

Write a program to count the number of vowels in a given string.

Easy

Problem Statement

Write a program to count the number of vowels in a given string.

Sample Input

"hello world"

Sample Output

3

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
# Predefined string string = "hello world" # Your logic here
Log in or sign up to run or submit your code.Log inSign up
Input
"hello world"
Expected Output
3