Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Comment out the code from the previous task.

  2. Create two integer variables, call them num1 and num2.

  3. Assign them a valid literal value.

  4. Print out their sum.

  5. Create another integer variable - result. Assign it the result of division between num1 and num2. Does it work? Can you fix it?

  6. Create another integer variable - num3 and assign it a value 8.

  7. Print out the value of num3++.

  8. Print out the value of num3.

  9. Print out value of ++num3.

  10. Is there any difference?

...