how to reverse the values in array?
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int[] array = { 3, 5, 7, 3, 7, 9, 2 };
for(int i = 0; i < array.Length; i++)
{
Console.Write(array[i] + " ");
}
}
}
}
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int[] array = { 3, 5, 7, 3, 7, 9, 2 };
for(int i = 0; i < array.Length; i++)
{
Console.Write(array[i] + " ");
}
}
}
}

Ashwin ChauhanRank #3,021 · 477 reputationPosted Dec 8, 2018, 7:51 AM EST