The code block in particular is:
for n in {1..$PASSEDARGS}; do
      printf "%s\n" "$n"
done
The following code block doesn't work, instead it prints {1..3} where 3 is the value of the number of arguments passed to the script.
How do I make the program print the argument at $n?