Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (c) 2012 [iPs]TeaM
- * Bruno da Silva (brunoemail@r7.com)
- * Pegar um número triangular conforme sua posição. Fórmula de Gauss
- * www.brunodasilva.com
- * www.ips-team.forumeiros.com
- */
- function getTriangle(n) {
- return (n*n(n+1)) / 2
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement