title: How to Add vertical line in table Latex
body: <p>I have this sheet of latex code.</p>
  
  <pre><code>\begin{table}[c]
  
  \caption{\textbf{the results of analysis of variance (One Way ANOVA) 
    for the differences in the responses of the study sample according
    to different classes.}}
  \bigskip
  \centering
  
  \begin{tabular}  {|M{4.5cm}|M{1.5cm}|M{1.5cm}|M{1.5cm}|M{1.75cm}|M{1.5cm}|M{2.5cm}|}
  \hline
   \textbf{} &amp; \textbf{Variance}         
   &amp;\textbf{Sum of the squares }  &amp; \textbf{Degrees of Freedom } &amp;
   \textbf{Average Squares} &amp;\textbf{P Value} &amp;\textbf{Statistical  significance } \\ 
  \hline
  
  \multirow{3}{*}{\makecell{Q11.2}} &amp; UK &amp;122 &amp; 0.14 &amp; 0.348 &amp;
  \multirow{3}{*}{\makecell{0.978}  }  &amp;  \multirow{3}{*}
  {\makecell{0.329}}\\  \cline{2-5}
               &amp; SA  &amp; 224 &amp; 0.10 &amp; 0.304
               \\  \cline{2-5}
               &amp; SA  &amp; 224 &amp; 0.10 &amp; 0.304
               &amp;&amp;    \\ \hline
  
  \end{tabular}
  \end{table}
  </code></pre>
  
  <p>I get this output<a href="https://i.stack.imgur.com/Vp7wA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vp7wA.png" alt="enter image description here"></a> :</p>
  
  <p>I don't know how to  fill empty vertical lines!</p>
  
  <p>What's wrong with my code?</p>