I haven't yet proven the fundamental theorem of finitely generated abelian groups, but it is stated without proof in my textbook, Abstract Algebra by Dummit and Foote, page 159; its proof appears in a later chapter.
The textbook also states that the theorem implies that a finitely generated abelian group is a finite group if and only if its free rank is zero.
How so?