fizzbuzz method

If I wanted to improve this program I think I might add user input for the number as well check to see if the input entered is an actual number before returning the contents