Advertisements
Advertisements
Question
What is the difference between / and % operator?
Distinguish Between
Solution
S. No. | / | % |
1. | Division (/) operator | Modulus (%) operator |
2. | Returns the quotient of division operations. | Returns the remaining from the division operation. |
3. | Example:
|
Example:
|
shaalaa.com
Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 44]