// Fig. 5.5: Sum.java
// Summing integers with the for statement.
Sum is 110 41 more words
// Calculate the sum of the integers from 1 to 10
The sum is: 55 61 more words
Since we are not allowed to use arithmetic operators, we can play with binary operators.
Consider following statements
~n = -(n+1), where ~n represents one's complement of n. 27 more words
If you’ve been on my or on Jason’s course you surely remember how we have emphasized the importance of stops – both understanding them as a simple and powerful concept (double or half the exposure or brightness) and also as getting familiar with them as numbers. 174 more words