Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace Demo
- {
- class Program
- {
- static void Main(string[] args)
- {
- try
- {
- char input = char.Parse(Console.ReadLine());
- if (input >= 48 && input <= 57)
- {
- Console.WriteLine("digit");
- }
- else if (input == 'a' || input == 'o' || input == 'u' || input == 'y' || input == 'i' || input == 'e')
- {
- Console.WriteLine("vowel");
- }
- else
- {
- Console.WriteLine("other");
- }
- }
- catch (Exception)
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment