1 / 4
Télécharger la présentation
Contoh code K13
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
Contoh code programsort (input, output); var a: array [0..10] of integer; procedure readarray; var i: integer begin for i:= 1 to 9 do read (a[i]) end; function partition (y, z: integer) : integer; var i, j, x, v : integer;
Contoh code (cont) begin... end procedure quicksort(m, n, integer); var i: integer; begin if (n > m) then begin i := partition(m, n); quicksort(m, i – 1); quicksort(i + 1, n);
Contoh code end; end; begin a[0] := -9999; a[10] := 9999; readarray; quicksort(1, 9); end.
More Related