2011-08-01ãã1ã¶æéã®è¨äºä¸è¦§
(function(){ var x = 1, y = 1, z = 1, count = 0; for(x=1; x<10; x++ ){ for(y=1; y<10; y++){ for(z=1; z<10; z++){ if( x+y+z == 10 ){ count++; } } } } console.log(count); })() 36çµ
(function(){ var x = 1, y = 1, z = 1, count = 0; for(x=1; x<10; x++ ){ for(y=1; y<10; y++){ for(z=1; z<10; z++){ if( x+y+z == 10 ){ count++; } } } } console.log(count); })() 36çµ