`
namespace Program
{
class Program
{
static void Main(string[] args)
{
Console.Write("s: ");
string s = Console.ReadLine();
int count = 0;
string[] sp = s.Split(new Char[] {' '}, StringSplitOptions.RemoveEmptyEntries);
foreach (string s1 in sp)
{
if (s[s.Length-1] == 'А')
count++;
}
Console.WriteLine(count);
}
}
}
`
My code works, but only if the first character is "A" I need it to work even if the first character is not A. Help