Run ❯
Get your
own C#
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
using System; namespace MyApplication { class Program { static void Main(string[] args) { string text = "Hello World"; int count = 0; foreach (char c in text.ToLower()) { if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { count++; } } Console.WriteLine("Number of vowels: " + count); } } }
Number of vowels: 3