Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% include header %>
- <h2>Calculadora</h2>
- <form method="GET">
- Valor inicial: <input type="text" name="valorInicial"><br> Taxa a.m.: <input type="text" name="taxa"><br> Quantos meses:
- <input type="text" name="tempo"><br>
- <button type="submit">Calcular</button>
- </form>
- <% if(resultado.progressao){ %>
- <div class="resultado">
- <h2>Resultado</h2>
- <table border="1">
- <thead>
- <tr>
- <th>Mês</th>
- <th>Valor</th>
- </tr>
- </thead>
- <tbody>
- <% resultado.progressao.forEach((value, index) => { %>
- <tr>
- <td><%= index + 1 %></td>
- <td><%= value.toFixed(2) %></td>
- </tr>
- <% }) %>
- </tbody>
- </table>
- </div>
- <% } include footer %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement