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

Programming Exercises

Count the number of vowels in a string.

Easy

Problem Statement

Count the number of vowels in a string.

Sample Input

str = "hello world"

Sample Output

Vowel Count = 3

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
#include <stdio.h> #include <string.h> int main() { char str[] = "hello world"; int count = 0; // Logic to count vowels return 0; }
Log in or sign up to run or submit your code.Log inSign up
Input
str = "hello world"
Expected Output
Vowel Count = 3