Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
you@paste.org web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as C# by registered user AntonisPlatis ( 4 years ago )
using System;
namespace Array_Sorting
{
internal class Program
{
public static void Main()
{
int i;
Random tyxaios = new Random();
int[] pinakas = new int[10];
for (i = 0; i < 10; i++)
{
pinakas[i] = tyxaios.Next(1,100);
}
for (i = 0; i < 10; i++)
{
Console.WriteLine(pinakas[i]);
}
for (i = 0; i < 10; i+=2)
{
Console.WriteLine(pinakas[i]);
}
}
}
}

 

Revise this Paste

Your Name: Code Language: