Foreach Exercise

Construct a loop that iterates through each value and outputs its type
Exercise for Control Structures II - 3 of 5

Added - Default to 1 if a string is entered instead of a number.