Given a pair of positive integers $n,q$ and a subgroup $H \leq \mathbb{Z}_q^n$ such that $H \cong \mathbb{Z}_q^m$ for a positive integer $m < n$ then show that $$ \mathbb{Z}_q^n / H \cong \mathbb{Z}_q^{n-m}.$$
This is a problem I came up with trying to generalize the trivial case when $q$ is a prime number (It is trivial because in this case a $\mathbb{Z}_q$- module is a vector space).
I actually found a proof but I believe it's way too long for such a statement so I'm not asking for hints or suggestions: my question is if somebody is able to find a better proof (even a sketch would be fine).
Let $e_i$ be the component vectors of $G=\mathbb{Z}_q^n$, which have $1$ in the $i$th place, and zero elsewhere. Consider the generators of $H$; let's write one as $$ h_1 = (a_1, \ldots, a_n) $$
This element has order $q$, so one of the components has order $q$: say $a_i$. Then $$ \{h_1\}\bigcup \{e_j\mid j\neq i\}$$ is a generating set for $G$ of $n$ order-$q$ elements; there is thus an automorphism of $G$ sending $h_1$ to $e_i$. We can thus quotient out $e_1$, and induction on $m$ then shows $G/H\cong \mathbb{Z}_q^{n-m}$.
Edit: The above only works for $q$ a prime power, but that ends up being enough. Because $G$ can be written as a direct product of its Sylow subgroups $$ G = P_1\times P_2\times\cdots\times P_r $$ where each Sylow subgroup is the unique one in $G$. Order considerations show $$ H = (H\cap P_1)(H\cap P_2)\cdots(H\cap P_r) $$ and this product is direct since the factors have trivial intersection.
Thus $$ G/H\cong P_1/(H\cap P_1)\times P_2/(H\cap P_2)\cdots $$ and these groups have the desired form by the first part of this answer.