Question: Write the algorithm to find the sum of series and also find its time complexity where

**Subject:** Analysis Of Algorithm

**Topic:** Introduction To Analysis Of Algorithm

**Difficulty:** Low

### Write the algorithm to find the sum of series and also find its time complexity where

$s=\sum_{i=1}^{n}i2$