Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. char n = char.Parse(Console.ReadLine());
  12. if (n == 'a' || n == 'e' || n == 'o' || n == 'u' || n == 'i')
  13. {
  14. Console.WriteLine("vowel");
  15. }
  16. else if (char.IsNumber(n))
  17. {
  18. Console.WriteLine("digit");
  19. }
  20. else
  21. {
  22. Console.WriteLine("other");
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement