In Bash, you could use brace expansion or a C-style for loop, but these are not portable to modern sh.

If you need your code to be portable to pre-POSIX systems, my recommendation would still be to learn the modern constructs first, especially for simple code like this (where in a production system you would probably want to use Awk or Perl for a loop like this anyway).