Está en la página 1de 5

qwertyuiopasdfghjklzxcvbnmqwerty

uiopasdfghjklzxcvbnmqwertyuiopasd
fghjklzxcvbnmqwertyuiopasdfghjklzx
cvbnmqwertyuiopasdfghjklzxcvbnmq
Rubrica 4
wertyuiopasdfghjklzxcvbnmqwertyui
Elaboració n de pá ginas web

opasdfghjklzxcvbnmqwertyuiopasdfg
Leslie Luna Bañuelos 6101 635-0

hjklzxcvbnmqwertyuiopasdfghjklzxc
vbnmqwertyuiopasdfghjklzxcvbnmq
wertyuiopasdfghjklzxcvbnmqwertyui
opasdfghjklzxcvbnmqwertyuiopasdfg
hjklzxcvbnmqwertyuiopasdfghjklzxc
vbnmqwertyuiopasdfghjklzxcvbnmq
wertyuiopasdfghjklzxcvbnmqwertyui
opasdfghjklzxcvbnmqwertyuiopasdfg
hjklzxcvbnmrtyuiopasdfghjklzxcvbn
mqwertyuiopasdfghjklzxcvbnmqwert
Código:
<html>

<head><title>rubrica 4</title>

<BODY bgcolor="gray">

<h1 align="center"><font color="purple"><face font="Century Gothic"><font size="10">rUuBriiQa


4</font></h1>

<br>

<form name="operaciones">

valor 1:<input type="text" name="a"><br>

valor 2:<input type="text" name="b"><br>

valor para restar:<input type="text" name="c"><br>

valor para dividir:<input type="text" name="m"><br><br>

resultado de multiplicacion:<input type="text" name="r"><br>

resultado de divicion:<input type="text" name="l"><br>

resultado de resta:<input type="text" name="d"><br>

<input type="button" value="calcular" onClick="i()"><input type="submit" value="Borrar">

<h2>binomio</h2>

valor1:<input type="text" name="n">

pot:<input type="text" name="p">

resultado:<input type="text" name="q">

<input type="button" value="calcular bino" onClick="s()">

<h3>trinomio</h3>

valor1:<input type="text" name="t">

valor2:<input type="text" name="o">

pot:<input type="text" name="e">

resultado:<input type="text" name="w">


<input type="button" value="calcular trino" onClick="z()">

</form>

<script lenguaje="JavaScript">

function i()

document.operaciones.r.value=document.operaciones.a.value * document.operaciones.a.value;

document.operaciones.l.value=document.operaciones.m.value / document.operaciones.r.value;

document.operaciones.d.value=document.operaciones.c.value - document.operaciones.r.value;

</script>

<script lenguaje="JavaScript">

function s()

var x=0;

var y=0;

x=document.operaciones.n.value;

y=document.operaciones.p.value;

for (var x1=2; x1<=y; x1++)

x=x*document.operaciones.n.value;

document.operaciones.q.value=x-6

</script>

<script lenguaje="JavaScript">

function z()

{
var x=0;

var y=0;

var u=0;

var ñ=0;

x=document.operaciones.t.value;

y=document.operaciones.e.value;

u=document.operaciones.o.value;

ñ=document.operaciones.e.value;

for (var x1=2; x1<=y; x1++)

x=x*document.operaciones.t.value;

for (var x2=2; x2<=ñ; x2++)

u=u*document.operaciones.o.value;

u=3*u;

document.operaciones.w.value=x+u;

</script>

</body>

</hmtl>

También podría gustarte