If $\sum_{n=1}^\infty a_n $ diverges and $a_n\geq 0 $, then
$\lim _{n \to \infty} S_n=\lim_{n \to \infty} \sum_{k=1}^n a_k =\infty $
Sol : If $\sum_{n=1}^\infty a_n $diverges
Then,
$ \lim_{n \to \infty}a_n \not=0$
I don't know how complete it, any hint or note for prove this problem .
$a_n\ge 0$, then $(S_n)_{n\in\mathbb N}=\sum_{k=1}^n a_k$ is a increasing sequence.
Therefore, $\lim_nS_n\ge0$ (possibly $\infty$)
If $\lim_nS_n\lt\infty$, then by definition of series, the series $\sum_{k=1}^\infty a_k$ is said to be convergent, i.e., doesn't diverges.
Also, the solution you gave is wrong, as you can consider $\sum_{k=1}^\infty\frac{1}{k}=+\infty$ but $\lim_k\frac{1}{k}=0$.