I have this code that lets you enter 4 values and it prints the highest value you entered. I understand everything up until the second for loop, how does it print the highest value? I'm rather new to c# and this is part of a school assignment. The part of code which is within "**" is what I don't really understand.
int[] inputNum = new int[4];
for(int i = 0; i < 4; i++)
{
Console.Write("Enter number: ");
inputNum[i] = int.Parse(Console.ReadLine());
}
**int inputMax = 0;
for(int i2 = 0; i2 < inputNum.Length; i2++)
{
if(inputNum[i2] > inputMax)
{
inputMax = inputNum[i2];
}**
}
Console.WriteLine($"Highest value number: {inputMax}");