in reply to Re: finding multiples of two values
in thread finding multiples of two values
Thanks guys. I finally got a chance to work on this.
I just did the modulus route and it works. I had a somewhat of a basic clue of what to do, just needed an extra push.
I agree though, I don't think a subroutine is necessary for this program. I need to look more into this modulus operator, it seems nifty. My first try resulted in a incorrect answer. It said that it was a multiple, even though the quotient was .5 (2 / 4), and when it said it wasn't a multiple when the quotient was 4 (48 / 12) I fixed it by flipping the operands. Just was an unexpected result. Something to research for sure.
Anyways, thanks again guys.