Please I need help whit this code 😞 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
17th Jun 2020, 12:08 PM
Jorge E.
Jorge E. - avatar
3 Answers
+ 2
https://code.sololearn.com/cHWWw5ZC9AIY/?ref=app
17th Jun 2020, 12:15 PM
Asgar Ali
Asgar Ali - avatar
+ 1
Jorge E. To check if number is divisible or not just check reminder if you get reminder 0 it means number is divisible otherwise not. So to get reminder use modulus operator % like this number % 2 == 0 && number % 3 == 0 or you can also say multiple of 6 (number % 6 == 0)
17th Jun 2020, 12:21 PM
A͢J
A͢J - avatar
0
Thanks 🤩
17th Jun 2020, 12:18 PM
Jorge E.
Jorge E. - avatar