早教吧 育儿知识 作业答案 考试题库 百科 知识分享

JAvascript一个三元方程3次方程functionequation(x,y,z){vara1,a2,a3,b1,b2,b3,c1,c2,c3,a,b,c,x,y,za1=parseFloat(prompt("a1","1"))a2=parseFloat(prompt("a2","1"))a3=parseFloat(prompt("a3","1"))b1=parseFloat(prompt("b1","1"))b2=parseFloat(prompt

题目详情
JAvascript 一个三元方程
3次方程
function equation(x,y,z){
var a1,a2,a3,b1,b2,b3,c1,c2,c3,a,b,c,x,y,z
a1=parseFloat(prompt("a1","1"))
a2=parseFloat(prompt("a2","1"))
a3=parseFloat(prompt("a3","1"))
b1=parseFloat(prompt("b1","1"))
b2=parseFloat(prompt("b2","1"))
b3=parseFloat(prompt("b3","1"))
c1=parseFloat(prompt("c1","1"))
c2=parseFloat(prompt("c2","1"))
c3=parseFloat(prompt("c3","1"))
a=parseFloat(prompt("a","1"))
b=parseFloat(prompt("b","1"))
c=parseFloat(prompt("c","1"))
if (a1*x+a2*y+a3*z==a && b1*x+b2*y+b3*z==b && c1*x+c2*y+c3*z==c)
document.write("
"+"x,y,z的值分别为"+x+y+z)
else
document.write(" ")
}
▼优质解答
答案和解析
没明白你是什么意思?