Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- char symbol;
- symbol = Convert.ToChar(Console.ReadLine());
- if ((symbol == 'a') || (symbol == 'e') || (symbol == 'i') || (symbol == 'o') || (symbol == 'u'))
- {
- Console.WriteLine("vowel");
- }
- else if ((symbol >= '0') && (symbol <= '9'))
- {
- Console.WriteLine("digit");
- }
- else
- {
- Console.Write("other");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement