Updating
A Programming Pattern |
Prof. David Bernstein |
Computer Science Department |
bernstdh@jmu.edu |
++
--
int currentAge, increment, initialAge; initialAge = 0; increment = 1; currentAge = initialAge + increment;
// Add age and 1 and assign the result to age age = age + 1;
+=
*=
-=
/=
%=
age += 1; price /= 2.0; grade -= penalty;
i =+ 1;
and j =- 1;
compile?