Why is there a line missing between Healthy and total column?
\begin{table}[ht]
\begin{center}
\begin{tabular}{|c|cc|c|}
\hline
&\multicolumn{2}{c}{BMI} \\
\multirow{-2.5}{*}{\makecell{Activity level}}& {Unhealthy} & {Healthy} &
\multirow{-2.5}{*}{\makecell{Total}} \\
\hline
Inactive & 25 & 21 & 46\\
Active & 9 & 45 & 54\\
\hline
Total &34 & 56 & \textbf{100}\\
\hline
\end{tabular}
\caption{\label{tab:table-name}Data on activity level, resting heart rate
and BMI}
\label{conting2}
\end{center}
\end{table}

|c|cc|c|so no line between columns 2 and 3 – David Carlisle Mar 26 '20 at 20:51\begin{tabular}{|c|c|c|c|} \hline &\multicolumn{2}{c|}{BMI} &\\should add the missing lines. – leandriis Mar 26 '20 at 21:02{}button to mark it as a code block. and the code still does not match the output – David Carlisle Mar 26 '20 at 21:08