new function to check if any number is a multiple of given multiple number.  also main function calls this new function to check for multiples of 3