so my issue is that i want to print out the info after for loop but it never really reaches the code. Is there a specific reason for that or should i put everything in the scope of the for loop? index outside of bouds of array
`int sumEven=1, sumOdd=1;
Console.WriteLine("Give the amount of numbers: ");
int amount = int.Parse(Console.ReadLine());
Console.WriteLine("Numbers: ");
int[] numberInputs = new int [amount];
for (int inc = 1; inc <= amount; inc++)
{
numberInputs[inc] = int.Parse(Console.ReadLine());
if (inc % 2 == 0)
{
sumEven *= numberInputs[inc];
}
else
{
sumOdd *= numberInputs[inc];
}
}
if (sumEven == sumOdd)
{
Console.WriteLine("Yes\n");
Console.Write($"Product = {sumEven}");
}
else if (sumEven != sumOdd)
{
Console.Write("No\n");
Console.WriteLine($"Even product = {sumEven}");
Console.WriteLine($"Odd product = {sumOdd}");
}