write a program that finds a number of elements in an array without using built-in features
static int CountOfElementsInArray(int[] array)
{
int count = 0;
foreach (int i in array)
{
count++;
}
//Console.WriteLine(count);
return count;
}
Comments
Leave a comment