User Tools

Site Tools


cpp_lesson02

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cpp_lesson02 [2013/05/05 20:06]
Bill Taylor
cpp_lesson02 [2019/02/09 10:31] (current)
Line 42: Line 42:
     * **/** division     * **/** division
     * **%** modulo     * **%** modulo
-   **Note:**The percent sign ("%") does not calculate percentages. It returns the remainder after division. For example: <code>+  * **Note:**The percent sign ("%") does not calculate percentages. It returns the remainder after division. For example: <code>
 10%3 10%3
 </code>returns "1" because after dividing "3" into "10" there is a remainder of "1". There are a couple of ways to write calculations in c++. We declare myNumber to be an unsigned integer: <code> </code>returns "1" because after dividing "3" into "10" there is a remainder of "1". There are a couple of ways to write calculations in c++. We declare myNumber to be an unsigned integer: <code>
cpp_lesson02.txt · Last modified: 2019/02/09 10:31 (external edit)