fizzbuzz refactor

check if input value is an integer