Commit 1a8872d3 by Nicolas Chamorro

Delete ejercicio 1.html

parent a65d6621
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
</head>
<body>
<script>
function suma(){
var x = Math.random()+100;
var y = Math.random()+50;
var c = x+y;
console.log("la suma de los numeros aleatorios",+x,"e", +y, "es "+c);
}
function resta(){
var x = Math.random()+100;
var y = Math.random()+50;
var c = x-y;
console.log("la resta de los numeros aleatorios",+x,"e", +y, "es "+c);
}
function multiplicacion(){
var x = Math.random()+100;
var y = Math.random()+50;
var c = x*y;
console.log("la multiplicacion de los numeros aleatorios",+x,"e", +y, "es "+c);
}
function division(){
var x = Math.random()+100;
var y = Math.random()+50;
var c = x/y;
console.log("la division de los numeros aleatorios",+x,"e", +y, "es "+c);
}
function potencia(){
var x = Math.random()+100;
var y = Math.random()+50;
var c = Math.pow(x,y);
console.log("el valor de x",+x,"elevado a la potencia",+y,"es"+c);
}
function resto(){
var x = Math.random()+100;
var y = Math.random()+50;
var c = x%y
console.log("el resto de x",+x,"e",+y,"es"+c);
}
suma();
resta();
multiplicacion();
division();
potencia();
resto();
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment