Advertisement
ipwxy

Arithmetic

Jun 29th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. The operators are the basic math operators: +, -, /, *
  2.  
  3. int number = 10 + 2;
  4. int otherNumber = number * 7;
  5.  
  6. You can also perform arithmatic while initializing.
  7.  
  8. int number = 10;
  9. int otherNumber *= number;
  10. //otherNumber = otherNumber * number
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement