Professional Documents
Culture Documents
DE CHIHUAHUA.
RUBRICA 4.
function A()
var mult=0;
mult=document.mul.val1.value*document.mul.val2.value;
document.mul.mult.value=mult;
var div=0;
div=document.mul.mult.value/document.mul.val3.value;
document.mul.div.value=div;
var res=0;
res=document.mul.div.value-document.mul.val4.value;
document.mul.res.value=res;
document.mul.re.value=res;
var a=document.mul.val5.value;
var b=document.mul.re.value;
if(a>b)
{
for(var a=b;a>b;a--)
{
Document.write(a);
}
}
else
{
}
</script>
<H2 ALIGN="CENTER"><FONT COLOR="GOLD">BINOMIO</FONT></h2>
<form name="binomio">
valor 1<input type="text" name="x">pototencia<input type="text" name="p">resultado<input
type="text" name="resu">
<br>
<input type="button"name="cal"value="calcular"onClick="bino()">
</form>
<script language="JavaScript">
function bino()
{
var c=0;
var d=0;
c=document.binomio.x.value;
d=document.binomio.p.value;
for(var x1=2;x1<=y;x1++)
{
x=x*document.binomio.x.value;
}
document.binomio.resu.value=x-6;
}
</script>
<hr>
<h3 ALIGN="CENTER"><FONT COLOR="GOLD">TRINOMIO</FONT></h3>
<form name="trinomio">
valor a<input type="text" name="a">valor b<input type="text" name="b">
<br>
Resultado<input type="text" name="resultado">
<input type="button"name="cal"value="calcular"onClick="tri()">
</form>
<script language="JavaScript">
function tri()
{
var a=document.trinomio.a.value;
var b=document.trinomio.b.value;
var r=0;
r=((a*a)+2*(a*b)*(b*b));
document.trinomio.resultado.value=r;
}
</script>
</body>
</html>