11 Answers
New AnswerYou just have to print your function & it will give you output of 2. Likewise: print(17%3) % modulo operator will give you remainder after dividing it by 17%3
You're not dumb at all! a dumb is one who doesn't understand and yet doesn't try anything to understand. Asking a question means you still got curiosity, a dumb just don't have it, and don't even care about it.
Hi! You can think like this: the multiplication table for 3 gives: 0, 3, 6, 9, 12, 15, 18, ... So to get 1, 4, 7, 10, 13, 16, 19,... from that table you have to add +1; And to get 2, 5, 8, 11, 14, 17, 20, ... you have to add +2 to that table. => 17 = 15 + 2 => 17 = (5 *) 3 + 2 => 17 % 3 == 2 /Regards Per B🙂
1. Take the nearest number when divided by 3 would be zero. That's apparently 15 2. Subtract 15 from 17 and the result is your answer.
When you divide it with a normal division sign there will be the remainder so the remainder is the answer
it is what is left when you perform integer division 17/3. Cause 3*5 is the closest u get to 17, then the remainder is 2
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message