WSQ03 – Fun With Numbers

WSQ03 was all about integers. Here’s what my code needed to do:

Ask the user for two integer values, then use those two values to calculate and show the following:

  • The difference of the two numbers.
  • The product of the two numbers.
  • The integer based division of the two numbers (so no decimal point). First divided by second.
  • The remainder of integer division of the two numbers

So the first thing was to ask for the integers…

wsq03

Now the printing (or outputs)…

wsq031

Here is the full code:

wsq032

And now, a run:

wsq033