Algorithm to find the sum of first n natural numbers

- Write an algorithm to find the sum of first n natural numbers
- Algorithm to find sum of squares of first n natural numbers
- Write an algorithm to find the sum of factorial of first n natural numbers
- Write an algorithm and draw a flowchart to find the sum of first n natural numbers
- Find next greater number with same set of digits