Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
js-e001
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Chamorro
js-e001
Commits
1a8872d3
Commit
1a8872d3
authored
Sep 04, 2020
by
Nicolas Chamorro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete ejercicio 1.html
parent
a65d6621
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
ejercicio 1.html
+0
-56
No files found.
ejercicio 1.html
deleted
100644 → 0
View file @
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment