Skip to content · ⁨الانتقال إلى المحتوى⁩

Count the vowels · ⁨عد الحروف المتحركة⁩

English

Count the vowels

Count the vowels (a e i o u) in a String, treating upper- and lower-case the same. Lower-case it first with s.toLowerCase(), then loop with s.charAt(i) and compare against each vowel.

العربية

عد الحروف المتحركة

عدّ الحروف المتحركة (a e i o u) في String، مع اعتبار الأحرف الكبيرة والصغيرة متساوية. حوّلها أولاً إلى أحرف صغيرة باستخدام s.toLowerCase()، ثم مرر حلقة s.charAt(i) وقارنها بكل حرف متحرك.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP