M
M
Misha Shevchuk2015-05-07 22:09:05
Java
Misha Shevchuk, 2015-05-07 22:09:05

How to set equations in java?

how to check if a number is divisible by 3 and not divisible by 9

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Stepanov, 2015-05-07
@shevchukmisha

if(a%3 == 0 && a%9 != 0)

V
Vladimir Martyanov, 2015-05-07
@vilgeforce

The remainder of the division by the corresponding numbers will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question