Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as Plain Text by csharp ( 12 years ago )
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();
        }
    }
}

 

Revise this Paste

Children: 68485
Your Name: Code Language: