wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What is 4 mod 2 ?


Open in App
Solution

Determine modulo value:

To find a mod b, subtract the highest multiple of b that is equal to or less than a from the dividend.

We have to find 4 mod 2 and here 4 is the dividend.

The multiples of 2 are 2,4,6,8,...

The highest multiple that is equal to or less than 4 is 4.

Now subtract the highest multiple from the dividend.

4-4=0

4mod2=0

Hence, the value of 4mod2 is equal to 0.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Ethanol and Ethanoic Acid
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon