C Modulo Operation. The key line is the one that performs the modulus operation: Num % 2 == 0.
It is searched for the fastest and most direct method to compute modulo. You already know a lot about math operations, teo, including operators such as. (see the second example above.)
Operations of addition, subtraction, multiplication and division correspond literally to their respective mathematical operators.
You already know a lot about math operations, teo, including operators such as. The modulo operation is to be distinguished from the symbol , which refers to the modulus (or in mathematics, the result of the modulo operation is an equivalence class, and any member of the. We would say this as a modulo b is equal to r where b is referred to as the modulus. A number is even if and only if it is divisible by two, and a number is divisible by another only if there is no remainder.
Nessun commento:
Posta un commento