calcu.html 1.63 KB
Newer Older
willgonzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Calculadora</title>
    <link href="css/cal.css" rel="stylesheet"/>
    <script src="calculadora.js"></script>
</head>
<body>
    <table>
        <tr>
            <td colspan="4"><button id="result"></button></td>
            
        </tr>
        <tr>
          <td><button onclick="agg('7')">7</button></td>
          <td><button onclick="agg('8')">8</button></td>
          <td><button onclick="agg('9')">9</button></td>
          <td><button onclick="agg('-')">-</button></td>
        </tr>
        <tr>
          <td><button onclick="agg('4')">4</button></td>
          <td><button onclick="agg('5')">5</button></td>
          <td><button onclick="agg('6')">6</button></td>
          <td><button onclick="agg('+')">+</button></td>
        </tr>
        <tr>
          <td><button onclick="agg('1')">1</button></td>
          <td><button onclick="agg('2')">2</button></td>
          <td><button onclick="agg('3')">3</button></td>
          <td><button onclick="agg('/')">/</button></td>
        </tr>
        <tr>
          <td><button onclick="agg('00')">00</button></td>
          <td><button onclick="agg('0')">0</button></td>
          <td><button onclick="agg('.')">.</button></td>
          <td><button onclick="agg('*')">x</button></td>
        </tr>
        <tr>
            <td colspan="3"><button onclick="limpiar()">limpiar</button></td>
            <td><button onclick="calc()">=</button></td>
        </tr>
      </table>
</body>
</html>