LATEST
using System;
public class Test
{
public static void Main()
{
var Letter = Console.ReadLine();
char c = char.Parse(Letter);
if(CheckIfCharacterisVowel(c))
{
Console.WriteLine("YES");
}
else
{
Console.WriteLine("NO");
}
}
public static bool CheckIfCharacterisVowel(char c)
{
if(c=='A'||c=='E'||c=='I'||c=='O'||c=='U'|| c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
{
return true;
}
return false;
}
}
using System;
public class Test
{
public static void Main()
{
var Letter = Console.ReadLine();
char c = char.Parse(Letter);
if(CheckIfCharacterisVowel(c))
{
Console.WriteLine("YES");
}
else
{
Console.WriteLine("NO");
}
}
public static bool CheckIfCharacterisVowel(char c)
{
if(c=='A'||c=='E'||c=='I'||c=='O'||c=='U'|| c=='a'||c=='e'||c=='i'||c=='o'||c=='u')
{
return true;
}
return false;
}
}
Comments
Post a Comment