Guest User

Guest User

  • Tech Writer
  • 13
  • 682

accessing values in an array

Dec 8 2018 11:19 AM
 assign first and third values to a and b
my code so far
 
 
using System;

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

array [a]=1;
array [b]=3;

Console.WriteLine(a + ", " + b);
}
}
}

Answers (3)