Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _13.VowelOrDigit
- {
- class Program
- {
- static void Main(string[] args)
- {
- char symbol = char.Parse(Console.ReadLine());
- if (symbol == 'a'|| symbol == 'o' || symbol == 'y' || symbol == 'u' || symbol == 'e' || symbol == 'i')
- {
- 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