Kotlinlearncs.online LogoJava
Return to List

Solve: Find Small Factors

Created By: Justin Maier
/ Version: 2024.7.0

Suppose an int variable n has already been declared and contains a positive integer. If n is divisible by 2, print "Divisible by 2". Print similar messages if it is divisible by 3 or 4.

Related Lessons

Stuck? You may find these lessons helpful: