Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace невнев
- {
- class Program
- {
- static void Main(string[] args)
- {
- string word = Console.ReadLine().ToLower();
- var letters = new string[] {"a" , "e", "i", "o", "u"};
- var numbers = new int[] { 1, 2, 3, 4, 5 };
- var sum = 0;
- for (int i = 0; i < letters.Length; i++)
- {
- if (word.Contains(letters[i]))
- {
- sum += numbers[i];
- }
- }
- Console.WriteLine(sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement