I wrote a table listing scores of 40 students using booktabs package. How to write midrule command automatically every 5 rows?
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{rclc}
\toprule
Number & Student Id & Name & Score \\
\midrule % adding automatically
1 & 14-001 & Andy & 75 \\
2 & & & \\
3 & & & \\
4 & & & \\
5 & & & \\
\midrule % adding automatically
6 & & & \\
7 & & & \\
8 & & & \\
9 & & & \\
10 & & & \\
\midrule % adding automatically
11 & & & \\
\bottomrule
\end{tabular}
\caption{A List of Student Scores}
\label{}
\end{table}
\end{document}


\\so that it increases the value of a counter each time it's used, and then every 5 numbers add a midrule. But I hope there is a better option.\midrules... But that's not the point, right.