Jessey,
"There are many ways to skin a cat"; for some "a dog", "a snake", etc...
Someone writes a code in his/her logic and it works with no problem.
Someone else writes a different code in a different logic and it also works and does the same job with no problem.
A third one writes a code in much shorter and faster way, it does the same job and works with no problem, too.
Now, since you are starting to programming, I suggest you skip the arrays at first and write long lines instead .
If you start your coding with arrays at the beginning, I see more complexity and confusion in front of you.
So when it comes to your code and project, there are of course several ways to do the same job in relatively less lines with arrays and some advanced coding techniques.
But why now?
-----------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks