1
Answer

getting length of an array

Guest User

Guest User

6y
389
1
 struggling with this problem
assign the length of the measurements array to the variable numberofMeasurements.
 
 using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int[] measurements = { 4, 6, 8, 3, 2 };
int numberOfMeasurements;

Console.WriteLine(numberOfMeasurements);
}
}
}

Answers (1)