Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{ $n := (parseArgs 1 "" (carg "int" "int") ).Get 0 }}
- {{ if lt $n 0 }} {{ $n = mult $n -1 }} {{ end }}
- {{ $x := add $n 3 }}
- {{ range $i := seq 0 (add $n 1) }} {{ mult $x (mult -1 $i) }} {{ $x = add $x (mult $i $n) }} {{ end }}
- {{- $x }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement