using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace listing3
{
class Program
{
static void Main(string[] args)
{
int[] polje = new int[10];
for (int j = 0; j < polje.Length; j++)
{
polje[j] = j;
}
int temp = polje[0];
for (int i = 1; i < polje.Length; i++)
{
polje[i - 1] = polje[i];
}
polje[polje.Length - 1] = temp;
foreach (int k in polje)
{
Console.Write(polje[k]+" ");
}
Console.ReadKey();
}
}
}Add a code snippet to your website: www.paste.org