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