0
私はmath.random()を使用します。なぜmath.floorを追加するとプログラムが動作しなくなるのですか?Javascript。関数math.floor(math.random()* 10 + 1)の代わりに関数が正しく動作するように、関数math.floorを追加するとcalc()関数は機能しません。
for(x=0; x< 5; x++){
var a = Math.floor(Math.random() * 10 +1) ;
var b = math.floor(Math.random() *10 +1) ;
var c = math.floor(Math.random() *10 +1) ;
var d = math.floor(Math.random() *10 +1) ;
document.write((a*b)/(c*d)+"<br>") ;
これはまあ問題ではありませんか? (数学の代わりに数学) –