If $K = \left\{ \mathbf{0}_V \right\}$, where $\mathbf{0}_V$ denotes the zero vector of $V$, then $\dim K = 0$, and also
$$
V/K = \big\{ \, \{ v \} \colon v \in V \, \big\},
$$
and so
$$
\dim V/K = \dim V = \dim V - \dim K.
$$
So let us suppose that the subspace $K$ has non-zero vectors as well.
Let us suppose that $\dim K = m$, and let $\left( e_1, \ldots, e_m \right)$ be a basis (in fact an ordered basis) for $K$.
Let us suppose that $\dim V = n$.
If $K = V$, then of course
$$
V/K = \big\{ K \big\}
$$
so that
$$
\dim V/K = 0 = \dim V - \dim K.
$$
So let us suppose that $K$ is a proper subspace of $V$. Then of course $n > m$, and the ordered basis $\left( e_1, \ldots, e_m \right)$ of the subspace $K$ can be extended to an ordered basis $\left( e_1, \ldots, e_m, e_{m+1}, \ldots, e_n \right)$ for the whole space $V$, for some vectors $e_{m+1}, \ldots, e_n \in V \setminus K$.
We now show that the (ordered) set $\left( e_{m+1} + K, \ldots, e_n + K \right)$ forms a basis (i.e. an ordered basis) for the quotient space $V/K$.
Let $v+K$ be an arbitrary element of $V/K$, where $v \in V$.
As $v \in V$ and as $\left( e_1, \ldots, e_m, e_{m+1}, \ldots, e_n \right)$ is an ordered basis for $V$, so this $v$ can be expressed uniquely as a linear combination of the vectors $e_1, \ldots, e_m, e_{m+1}, \ldots, e_n$; that is, there exists a unique $n$-tuple $\left( \alpha_1, \ldots, \alpha_m, \alpha_{m+1}, \ldots, \alpha_n \right)$ of scalars such that
$$
v = \alpha_1 e_1 + \cdots + \alpha_m e_m + \alpha_{m+1} e_{m+1} + \cdots + \alpha_n e_n.
$$
And, as $e_1, \ldots, e_m \in K$ and as $K$ is a (vector subspace) of $V$, so we obtain
$$
\begin{align}
v+K &= \left( \alpha_1 e_1 + \cdots + \alpha_m e_m + \alpha_{m+1} e_{m+1} + \cdots + \alpha_n e_n \right) + K \\
&= \left( \alpha_1 e_1 + K \right) + \cdots \left( \alpha_m e_m + K \right) + \left( \alpha_{m+1} e_{m+1} + K \right) + \cdots + \left( \alpha_n e_n + K \right) \\
&= \alpha_1 \left( e_1 + K \right) + \cdots \alpha_m \left( e_m + K \right) + \alpha_{m+1} \left( e_{m+1} + K \right) + \cdots + \alpha_n \left( e_n + K \right) \\
&= \alpha_1 K + \cdots + \alpha_m K + \alpha_{m+1} \left( e_{m+1} + K \right) + \cdots + \alpha_n \left( e_n + K \right) \\
&= \underbrace{K + \cdots + K}_{\mbox{$m$ terms}} + \alpha_{m+1} \left( e_{m+1} + K \right) + \cdots + \alpha_n \left( e_n + K \right) \\
&= K + \alpha_{m+1} \left( e_{m+1} + K \right) + \cdots + \alpha_n \left( e_n + K \right) \\
&= \alpha_{m+1} \left( e_{m+1} + K \right) + \cdots + \alpha_n \left( e_n + K \right).
\end{align}
$$
Note that $K$ is the so-called zero vector of the quotient (vector) space $V/K$.
Thus the ordered set $\left( e_{m+1} + K, \ldots, e_n + K \right)$ spans $V/K$.
We now show that $\left( e_{m+1} + K, \ldots, e_n + K \right)$ is linearly independent. For this suppose that, for some scalars $\beta_{m+1}, \ldots, \beta_n$, we have
$$
\beta_{m+1} \left( e_{m+1} + K \right) + \cdots \beta_n \left( e_n + K \right) = K.
$$
Note once again that $K$ is the so-called zero vector of the quotient (vector) space $V/K$. The preceding equation can be rewritten as
$$
\left( \beta_{m+1} e_{m+1} + \cdots + \beta_n e_n \right) + K = K,
$$
which implies that
$$
\beta_{m+1} e_{m+1} + \cdots + \beta_n e_n \in K,
$$
and as $\left( e_1, \ldots, e_m \right)$ is an ordered basis for $K$, so there exists a unique $m$-tuple $\beta_1, \ldots, \beta_m$ of scalars such that
$$
\beta_{m+1} e_{m+1} + \cdots + \beta_n e_n = \beta_1 e_1 + \cdots + \beta_m e_m,
$$
which implies that
$$
\beta_1 e_1 + \cdots + \beta_m e_m - \beta_{m+1} e_{m+1} - \cdots - \beta_n e_n = \mathbf{0}_V,
$$
where $\mathbf{0}_V$ denotes the zero vector in $V$, and since the vectors $e_1, \ldots, e_m, e_{m+1}, \ldots, e_n$ being basis vectors are linearly independent, therefore we can conclude that
$$
\beta_1 = \cdots = \beta_m = \beta_{m+1} = \cdots = \beta_n = 0,
$$
and thus in particular we obtain
$$
\beta_{m+1} = \cdots = \beta_n = 0,
$$
thus showing the linear independence of $\left( e_{m+1} + K, \ldots, e_n + K \right)$.
Hence $\left( e_{m+1} + K, \ldots, e_n + K \right)$ is a (an ordered) basis for $V/K$, which shows that
$$
\dim V/K = n - m = \dim V - \dim K,
$$
as required.