Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- <script type="text/javascript" src="script.js"></script>
- <title>Calculadora</title>
- </head>
- <body>
- <h1>Calculadora de Soma</h1>
- <p>Num1: <input type="text" id="num1"/> Num2: <input type="text" id="num2"/></p>
- <p><button onclick="sum();">SOMA</button></p>
- <p>Num1 + Num2 = <span id="result">?</span></p>
- <br/>
- <hr/>
- <h1>Calculadora de equação do segundo grau</h1>
- <h3>Digite os coeficientes: </h3>
- <p>a: <input type="text" id="a"/> b: <input type="text" id="b"/> c: <input type="text" id="c"/></p>
- <p><button onclick="bhaskara();">RAÍZES</button></p>
- <p>Resposta: <span id="root1">?</span> <span id="root2">?</span></p>
- <br/>
- <hr/>
- <h1>Calculadora que mostra todos os divisores comuns entre dois números:</h1>
- <p>Num1: <input type="number" id="n1"/> Num2: <input type="number" id="n2"/></p>
- <p><button onclick="divisors();">RESULTADO</button></p>
- <p>Resposta: <span id="divisors">?</span></p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement