Guest User

Guest User

  • Tech Writer
  • 13
  • 2.7k

getting length of an array

Dec 8 2018 6:22 AM
 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)