0 Modulo 3. A mod n where a is the value that is divided by n. For example, you're calculating 15 mod 4.
@test public void whenmodulo_thenreturnsremainder() { assertthat(11 % 4).isequalto(3); What is the function that is provided by the command? Sometimes, we are only interested in what the remainder is when we divide by.
Sometimes, we are only interested in what the remainder is when we divide by.
For example, 5 mod 3 = 2 which means 2 is the remainder when you divide 5 by 3. Here is the math to illustrate how to get 1 mod 3 using our modulo method: Inquiry, but may be useful at this stage of the process. The module also features a multicolor status led to display the current module mode.
Nessun commento:
Posta un commento