Modulo ஐ எப்படி கணக்கிடுவது
Modulo என்றால் என்ன?
Modulo (%) gives the remainder after division: a mod b = remainder of a ÷ b. It is fundamental to clock arithmetic, cryptography, hashing, cyclic patterns, and determining even/odd numbers. In programming, % is the modulo operator.
படிப்படியான வழிகாட்டி
- 117 mod 5 = 2 (because 17 = 3×5 + 2)
- 2Even numbers: n mod 2 = 0; Odd: n mod 2 = 1
- 3Clock arithmetic: (current hour + hours to add) mod 12
- 4Modular arithmetic: (a + b) mod n = ((a mod n) + (b mod n)) mod n
தீர்க்கப்பட்ட எடுத்துக்காட்டுகள்
உள்ளீடு
23 mod 7
முடிவு
2
23 = 3×7 + 2
உள்ளீடு
100 mod 12 (clock)
முடிவு
4
100 hours later = 4 AM
கணக்கிடத் தயாரா? இலவச Modulo கால்குலேட்டரை முயற்சிக்கவும்
நீங்களே முயற்சிக்கவும் →