Making a different table in latex

How can I make something like this?

I know how to make a table but I don't know how to make that line between 3 and 5 in a table. Can someone please explain me how to do it??

Use \multicolumn{'num_cols'}{'alignment'}{'contents'}.
 \begin{tabular}{|c | c| c| c| c |c |}\hline