Now I need to know if a number is a multiple of 3, 5 and both.
We cannot give you that, else it would be just giving it away. You’ll have to take some time to research this. It’s an interview question, remember.
I gave you a link to the Swift operators. Which operator do we use to test for zero remainder?
I just have one simple question. Should it be in or outside the while
loop.
We’re using the loop to generate a sequence of numbers so it follows that code will be inside the loop.
Oh my god this has been a lifesaver! I knew it was a simple mistake(always is, isn’t it? :p) thank you so much for your help!