Created
December 10, 2012 22:48
-
-
Save monbro/4254045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test 2erfolge, dezimal 0,1,2,3 | |
var laenge = 2; | |
var anzahl = Math.pow(2, laenge); | |
var i, j; | |
// document.write(anzahl); | |
for (i = 0; i < anzahl; i++) { | |
document.write(i + ": <br>"); | |
for (j=0; j < laenge; j++) { | |
var binaer = | |
document.write(j+" "); | |
} | |
document.write("<br>"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment