How to call arguments with variable in a script??

Hello, I was wondering if it were possible to call arguments passed to a script using a variable.

For example:

sh script.sh yes no good bad

x=$#

while [ x -gt 0 ]
do
echo (last argument, then second last etc until first argument)
let x=($x-1)
done

should print out

bad
good
no
yes

Thanks for any help with this:D

try this...

for x in $*; do echo $x; done

I didn't even think of that, simple but ingenious. Thanks!

x=$#

while [ $x -gt 0 ]
do
eval echo \${$x}
let x=x-1
done
#! /bin/bash

ARGS=( "$@" )
X=$(( $#-1 ))
while [ $X -ge 0 ]
do
  echo "${ARGS[$X]}"
  X=$(( $X-1 ))
done

exit 0