what is the difference between slash and modules????
Answers
Answered by
1
Explanation:
In integer division and modulus, the dividend is divided by the divisor into an integer quotient and a remainder. The integer quotient operation is referred to as integer division, and the integer remainder operation is the modulus.
Answered by
0
Answer:
% is a modulo operator , It give remainder of two numbers on division as result and discard quotient and gives an integer
eg. 11%4=3
=> 11/4 => 11–(4*2) => 11–8 = 3, remainder is 3 as it is less than 4 .
/ is a division operator , it give quotient of two numbers on division as result and gives a floating point number.
eg. 11/4=2.75
=> 11/4 => 11–(4*2) => 11–8 = 3 => 3/4= 0.75 . so quotient is 2.75
Similar questions
Math,
5 months ago
Math,
5 months ago
Math,
11 months ago
Social Sciences,
11 months ago
Physics,
1 year ago