Write
\begin{equation*}
T=\begin{bmatrix}A \amp C\\O\amp B\end{bmatrix}
\end{equation*}
and proceed by induction on \(k\text{,}\) where \(A\) is \(k\times k\text{.}\) If \(k=1\text{,}\) then the result follows from cofactor expansion along the first column. In general, let \(S_i(T)\) denote the matrix obtained from \(T\) by deleting row \(i\) and column 1. Then the cofactor expansion along the first column is
\begin{equation*}
\det{T}=a_{11}\det{S_1(T)}-a_{21}\det{S_2(T)}+\dots + (-1)^{k+1}\det{S_k(T)}
\end{equation*}
where \(a_{11}, a_{21},\dots , a_{k1}\) are the entries in the first column of \(A\text{.}\) Observe that
\begin{equation*}
S_i(T)=\begin{bmatrix}S_i(A) \amp C_i\\O\amp B\end{bmatrix}
\end{equation*}
where \(i=1,2,\dots , k\text{,}\) \(S_i(A)\) denotes matrix \(A\) with column 1 and row \(i\) deleted, and \(C_i\) denotes matrix \(C\) with with row \(i\) deleted. Since \(S_i(A)\) is a \((k-1)\times (k-1)\) matrix, by the induction hypothesis,
\begin{equation*}
\det{S_i(T)}=\det{S_i(A)}\cdot \det{B}
\end{equation*}
This gives us
\begin{align*}
\det{T}=\amp a_{11}\det{S_1(T)}-a_{21}\det{S_2(T)}+\dots + (-1)^{k+1}a_{k1}\det{S_k(T)} \\
=\amp a_{11}\det{S_1(A)}\cdot\det{B}-a_{21}\det{S_2(A)}\cdot\det{B}+\dots \\
\amp \dots+ (-1)^{k+1}a_{k1}\det{S_k(A)}\cdot\det{B} \\
=\amp \Big(a_{11}\det{S_1(A)}-a_{21}\det{S_2(A)}+\dots + (-1)^{k+1}a_{k1}\det{S_k(A)}\Big)\det{B} \\
=\amp \det{A}\det{B}.
\end{align*}
The lower triangular case is similar.