Advertisement
DaniPasteBin

Untitled

May 28th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _13.VowelOrDigit
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             char symbol = char.Parse(Console.ReadLine());
  10.  
  11.             if (symbol == 'a'|| symbol == 'o' || symbol == 'y' || symbol == 'u' || symbol == 'e' || symbol == 'i')
  12.             {
  13.                 Console.WriteLine("vowel");
  14.             }
  15.             else if (symbol >= 48 && symbol <= 57)
  16.             {
  17.                 Console.WriteLine("digit");
  18.             }
  19.             else
  20.             {
  21.                 Console.WriteLine("other");
  22.             }
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement