Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
js-e002
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
Jose Baez
js-e002
Commits
67ce26dd
Commit
67ce26dd
authored
May 05, 2022
by
Jose Baez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dados final 1.0
parent
d9e75e47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ejercicio1.js
+1
-4
index.html
+2
-0
No files found.
ejercicio1.js
View file @
67ce26dd
...
@@ -3,10 +3,7 @@
...
@@ -3,10 +3,7 @@
// (-b + sqrt(b^2 - 4ac))/2a
// (-b + sqrt(b^2 - 4ac))/2a
// Entrada: a, b, c Salida: raiz cuadrática (+)
// Entrada: a, b, c Salida: raiz cuadrática (+)
function
ecuacion
(
a
,
b
,
c
){
function
ecuacion
(
a
,
b
,
c
){
let
resultado
;
return
(
-
b
+
Math
.
sqrt
(
Math
.
pow
(
b
,
2
)
-
4
*
a
*
c
))
/
(
2
*
a
)
resultado
=
(
b
+
Math
.
sqrt
(
Math
.
pow
(
b
,
2
)
-
4
*
a
*
c
))
/
(
2
*
a
)
console
.
log
(
resultado
)
}
}
ecuacion
(
4
,
-
64
,
2
)
ecuacion
(
4
,
-
64
,
2
)
...
...
index.html
View file @
67ce26dd
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
<img
id=
"dado4"
></img>
<img
id=
"dado4"
></img>
<img
id=
"dado5"
></img>
<img
id=
"dado5"
></img>
<img
class=
"dado"
></img>
</div>
</div>
<script
src=
"ejercicio1.js"
></script>
<script
src=
"ejercicio1.js"
></script>
...
...
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