This code never gives me the first option despite me following the correct prompts. I cant find what is wrong with this expression. It constantly gives the false option ( in this case "noooo"). What are other simple alternatives ( simple because I need it for school)
string postalcode;
int i = 0;
postalcode = Console.ReadLine();
Console.WriteLine(postalcode[0]);
if (postalcode[0].CompareTo(i).ToString().Equals(0))
{
Console.WriteLine("YAY");
Console.ReadLine();
}
else
{
Console.WriteLine("nooo");
Console.ReadLine();
}