What is the difference between / and % operator?
Single Choice
Views 91
Answer:
Difference between / and % operator:
- /: Division operator, used to divide two numbers and return the quotient. Example:
10 / 3 = 3. - %: Modulus operator, used to divide two numbers and return the remainder. Example:
10 % 3 = 1.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.