Given a number N, find the Nth triangular number, i.e. 1 + 2 + 3 + ... + N
1 + 2 + 3 + ... + N
正在加载编辑器…