I am trying to find out how I can count with a loop in a range from lowest to highest then highest to lowest...maybe a loop is not the best thing to use?
something like
1 2 3 4 5
then 5 4 3 2 1
then 1 2 3 4 5 again and this keep repeating until i choose to stop it..which i know how to do
any help would be appreciated!
I would like for the number to be stored in a single variable.