Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
bubbleSort
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 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 = {3, 2, 5, 1, 7, 22}; int temp; for ( int i = 0; i < array.Length; i++) { for ( int j = 0; j < array.Length -1; j++) if( array[j] > array[j+1]) { temp = array[j]; array[j] = array[j+1]; array[j+1] = temp; } } for ( int i = 0; i < array.Length; i++) {Console.Write(array[i] + ", "); } } } }
run
|
edit
|
history
|
help
0
asxasxsd
D15
Palindrome 1
6.3 Parallelism: job-pattern
QLSV
Talk To Jack
merge 2 arrays
RegEx
Index.cshtml
Home work3 finding Min and Max (to theGit)