10 Modulus

10 Modulus - modulus modulus Let's say thumb drives cost $7...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: modulus modulus Let's say thumb drives cost $7 each If you have $25, how many thumb drives can you buy? How much money will be left over? 1 modulus modulus Let's say thumb drives cost $7 each If you have $25, how many thumb drives can you buy? 25 / 7 is 3 25 is How much money will be left over? 25 % 7 is 4 25 is Modulus finds the remainder ("left over") from integer division 2 modulus modulus 3 modulus modulus 4 modulus modulus 5 modulus modulus 6 modulus modulus 25 / 7 25 % 7 7 ...
View Full Document

This note was uploaded on 01/13/2012 for the course CS 12 taught by Professor Ma during the Spring '08 term at UC Davis.

Ask a homework question - tutors are online