:master:codice:function trovaTreNumeri(somma) { var a = Math.ceil(Math.random() * (somma/2 - 3)), b = Math.ceil(Math.random() * (somma/2 + 3)), c = somma - a - b; return "".concat(a, " + ", b, " + ", c, " = ", a+b+c); }; for(var a = 9; a < 262; a++) document.write(trovaTreNumeri(a).concat(" "));