When ever you find your self writing the same lines of code over and over it is time to try and investigate loops. In this case try and see how a for loop will cut down on the lines of code you write.
Computer languages are constructed so that the computer does the repetitive stuff not you.