let a; for(let i=1;i<=N;i=(i+1)|0){a+=i;} console.log(a);