Previous Next
0 / 23
Module DEMO-32-108DEMO-C-32

Count Vowels

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program that counts the total number of vowels (a, e, i, o, u) present in a given string, ignoring case.

Constraints

Max string length: 100

Input Format

Input:

String S

Output Format

Output:

Count

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
Unix?5
2
There are 2 vowels in the string Unix?5.
Sample #2
Public sample
Kernel#6
2
Hidden test case.
Sample #3
Public sample
Buffer#2
2
There are 2 vowels in the string Buffer#2.
Sample #4
Public sample
Bug?3
1
There are 1 vowels in the string Bug?3.
Sample #5
Public sample
Module.4
3
There are 3 vowels in the string Module.4.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings