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 ChauhanPosted Dec 8, 2018, 12:51 PM