Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Learning
- {
- class Program
- {
- static void Main()
- {
- try
- {
- string symbol = Console.ReadLine();
- if (symbol == "a" || symbol == "e" || symbol == "i" || symbol == "o" || symbol == "u")
- {
- Console.WriteLine("vowel");
- return;
- }
- else
- {
- int digit = int.Parse(symbol);
- Console.WriteLine("digit");
- }
- }
- catch (Exception)
- {
- Console.WriteLine("other");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment