Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
45
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int [] array= new int []{7, 6, 5, 9, 4, 1}; int i=1; while(i<array.Length) { int j = i; i++; while (j > 0 && array[j] < array[j - 1]) { array[j] = array[j - 1]; j--; } array[j]=array[i]; } for(int k=0; k<array.Length; k++) Console.WriteLine("m"+ "["+k+"]="+array[k]); Console.ReadKey(); } } }
run
|
edit
|
history
|
help
0
Time by 15 minutes
StopJoin.cs
ProtectedUse
Binary Search Tree
biswa
Math Main
Swedish regex test
rd
Operator operates. Op!
Fórum Mimicking Array Names Being Defined at Runtime