Search for question
Question

Q2.2.6 Formally, the integer division a // b is defined as the floor of a/b (sometimes written that is, the largest integer less than or equal to a / b. The modulus or remainder, a % b (also written a mod b), is then (a) 7 // 4 (b) 7 % 4 -7 // 4 (d) -7 % 4 (e) 7 // -4 (f) 7 % -4 (g) -7 // -4 (h) -7 % -4 a mod b = a - b

Fig: 1