Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <link rel="stylesheet" type="text/css" href="style.css"/>
  6. <script type="text/javascript" src="script.js"></script>
  7. <title>Calculadora</title>
  8. </head>
  9. <body>
  10. <h1>Calculadora de Soma</h1>
  11. <p>Num1: <input type="text" id="num1"/> Num2: <input type="text" id="num2"/></p>
  12. <p><button onclick="sum();">SOMA</button></p>
  13. <p>Num1 + Num2 = <span id="result">?</span></p>
  14. <br/>
  15. <hr/>
  16. <h1>Calculadora de equação do segundo grau</h1>
  17. <h3>Digite os coeficientes: </h3>
  18. <p>a: <input type="text" id="a"/> b: <input type="text" id="b"/> c: <input type="text" id="c"/></p>
  19. <p><button onclick="bhaskara();">RAÍZES</button></p>
  20. <p>Resposta: <span id="root1">?</span> <span id="root2">?</span></p>
  21. <br/>
  22. <hr/>
  23. <h1>Calculadora que mostra todos os divisores comuns entre dois números:</h1>
  24. <p>Num1: <input type="number" id="n1"/> Num2: <input type="number" id="n2"/></p>
  25. <p><button onclick="divisors();">RESULTADO</button></p>
  26. <p>Resposta: <span id="divisors">?</span></p>
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement