preguntar acerca de bubble-sort

14
réponses

Simple bulle de tri c#

int[] arr = {800,11,50,771,649,770,240, 9}; int temp = 0; for (int write = 0; write < arr.Length; write++) { for (int sort = 0; sort < arr.Length - 1; sort++) { if (arr[sort] > arr[sort + 1]) { temp = ar …
demandé sur 1970-01-01 00:33:33