Here, negative numbers are dealt with, and floating point numbers over 1 are shortened to the whole number. Inspired by good strict error testing by ________ in lab 1 (you know who you are!)
Based on old version - description here:
If you enter a number, you will receive that number of alerts counting up to that number of elephants. If you don't enter a number, the prompt will continue to ask you for a number.
Script could still be improved by adding a small if statement into the second while loop (the one that counts up) to adjust the alert string according to whether or not c is 1 (singular elephant) or greater than one (plural elephants)