Computer Science, asked by mahanofficial, 10 months ago

what is the difference between slash and modules????​

Answers

Answered by simmujosan
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 alexsarkar2752
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