Archived
1
0

optimise files

This commit is contained in:
2025-11-25 20:14:10 +08:00
parent bb4a37acc4
commit 4e148364a9
171 changed files with 6555 additions and 0 deletions

36
CS/15_4/Program.cs Normal file
View File

@@ -0,0 +1,36 @@
using System;
using System.Collections;
namespace _15_4
{
internal class Program
{
static void Main(string[] args)
{
int countA = 0, countE = 0, countI = 0, countO = 0, countU = 0, countALL = 0;
string str = Console.ReadLine();
str = str.ToUpper();
char[] chars = str.ToCharArray();
foreach (char c in chars)
{
countALL++;
switch (c)
{
case 'A': countA++; break;
case 'E': countE++; break;
case 'I': countI++; break;
case 'O': countO++; break;
case 'U': countU++; break;
default: break;
}
}
Console.WriteLine(countALL);
Console.WriteLine(str);
Console.WriteLine("A:{0}", countA);
Console.WriteLine("E:{0}", countE);
Console.WriteLine("I:{0}", countI);
Console.WriteLine("O:{0}", countO);
Console.WriteLine("U:{0}", countU);
}
}
}