I have a problem with a practice 4.2 of Kotlin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I have a problem with a practice 4.2 of Kotlin

I don't know how to resolve that question, anybody can help me?.

30th Dec 2021, 4:31 PM
Kevin Zhang
5 Answers
+ 2
the hint is in the yellow box below the practice code explanation. it says you can use the modulo to solve it. if for example you want the remainder of 10 divided by 3 you would write something like : println(10%3) and you will get 1 as output.
30th Dec 2021, 4:47 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
get the remainder of 200 divided by 7. the practice code has a hint.
30th Dec 2021, 4:38 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
Lol, I already did, I hadn't seen it Thanks bro
30th Dec 2021, 4:58 PM
Kevin Zhang
0
Thanks, I'm go to try again.
30th Dec 2021, 4:40 PM
Kevin Zhang
0
I can't see the hint, is blocked
30th Dec 2021, 4:41 PM
Kevin Zhang