Please I am a beginner to programming, why is count used in the for loop so far it is 0 and not if i is less than the number array length.
- count = 0
- for (int i = 0; i < count; i++)
- if (numbers[i] == searchNumber)
- found = true;
- if (found)
- Console.WriteLine("Number {0} found a amount of {1} "
- , numbers[i]);
- else
- {
- Console.WriteLine("Not found");
- found = false;
- }
- break;