what is the difference between /and% operator? give two examples
Answers
Answered by
1
Answer:
Answer: Both / and % are two different operators used in Java. These operators are mathematical operators and both have different uses. / Only perform the division operation in mathematics and returns results as the quotient, while % is known as modulus. / divides and returns the answer.
Explanation:
please mark me Brianlist
Answered by
0
Answer:
'/' is known as division operater and used for division , for e.g. 10 / 5 = 2 i.e. the quotient whereas '%' is known as modulus and used for obtaining the remainder of calculation. for e.g. 10 % 5 = 0 i.e. the remainder.
Similar questions