What is the difference between / and % operator with solved example
Answers
Answered by
1
Answer:
the division expression / divides the two operand and gives you the quotient wheras % modulus operator divide yhe two value and give you the remainder
Explanation:
for example 10/2=5
whereas 10%2=0 because the remainder is 0 as 10 is completely divisible by 2
Answered by
1
Answer:
/ is a division expression;and
%is modulas
Similar questions