Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Clean
- {
- public static void Main()
- {
- string input = Console.ReadLine();
- bool lowerCase = input == "a" || input == "e" || input == "i" || input == "o" || input == "u" || input == "y";
- bool upperCase = input == "A" || input == "E" || input == "I" || input == "O" || input == "U" || input == "Y";
- if (char.IsDigit(Convert.ToChar(input)))
- {
- Console.WriteLine("digit");
- }
- else if (lowerCase || upperCase)
- {
- Console.WriteLine("vowel");
- }
- else
- {
- Console.WriteLine("other");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement