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
Datum_CRM
program
Fórum ➡ Prime numbers implemented using LINQ statements AND using FOR loop ♦
Distinct of the given array
Merge Sample
recursive solution for subset sum
Complex Variable Implementation in C#
KeyValue pair C#
Testing
svsvsvsvsv