السابق التالي
0 / 23
الوحدة النمطية DEMO-32-108DEMO-C-32

Count Vowels

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

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

قيود

Max string length: 100

تنسيق الإدخال

Input:

String S

تنسيق الإخراج

Output:

Count

حالات اختبار نموذجية

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

العينة رقم 1
عينة ظاهرة
Unix?5
2
There are 2 vowels in the string Unix?5.
العينة رقم 2
عينة ظاهرة
Kernel#6
2
Hidden test case.
العينة رقم 3
عينة ظاهرة
Buffer#2
2
There are 2 vowels in the string Buffer#2.
العينة رقم 4
عينة ظاهرة
Bug?3
1
There are 1 vowels in the string Bug?3.
العينة رقم 5
عينة ظاهرة
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
إعدادات المحرر