Advertisement
Rayk

Untitled

Nov 8th, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2.  
  3. class Clean
  4. {
  5. public static void Main()
  6. {
  7. string input = Console.ReadLine();
  8.  
  9. bool lowerCase = input == "a" || input == "e" || input == "i" || input == "o" || input == "u" || input == "y";
  10. bool upperCase = input == "A" || input == "E" || input == "I" || input == "O" || input == "U" || input == "Y";
  11.  
  12. if (char.IsDigit(Convert.ToChar(input)))
  13. {
  14. Console.WriteLine("digit");
  15. }
  16. else if (lowerCase || upperCase)
  17. {
  18. Console.WriteLine("vowel");
  19. }
  20. else
  21. {
  22. Console.WriteLine("other");
  23. }
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement