SHARE
TWEET

Untitled

Rayk Nov 8th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top