var x= Math.floor(Math.random() * 100); var y= Math.floor(Math.random() * 100); var z= Math.floor(Math.random() * 100); console.log(x+ " "+y+" "+z); raices(x,y,z); function raices(a,b,c){ var x1= (-1*b)+Math.sqrt(b**2 -4*a*c); var x2= (-1*b)-Math.sqrt(b**2 -4*a*c); x1= x1/(2*a); x2=x2/(2*a); console.log("Las raices son: "+x1+" "+x2); }