Jump to content

Dutch national flag problem: Difference between revisions

Added Easylang
imported>Thebeez
(Added Easylang)
Line 1,398:
</pre>
 
 
=={{header|EasyLang}}==
<syntaxhighlight>
col$[] = [ "red" "white" "blue" ]
for i to 16
b[] &= random 3
.
for b in b[]
write col$[b] & " "
.
print ""
print ""
for i = 1 to len b[] - 1
for j = i + 1 to len b[]
if b[j] < b[i]
swap b[j] b[i]
.
.
.
for b in b[]
write col$[b] & " "
.
</syntaxhighlight>
 
=={{header|Elixir}}==
2,063

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.