I want to print Ready if CL (count lucky) is greater than CUL(count unlucky). My criteria is N is some number and array A is upto N. and the contents of array are checked whether individual content is even/odd. If even CL++, or else CUL++
static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());
int[] A = new int[100];
int cL=0; int CUL = 0;
int j;
for (j = 0; j < N; j++)
{
A[j] = int.Parse(Console.ReadLine());
if (A[j] %2!=0))
{
CUL = CUL++;
}
else
{
cL = cL++;
}
}
if (cL>CUL)
{
Console.WriteLine("Ready for battle");
}
else
{
Console.WriteLine("Not ready");
}
}