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…
Now the printing (or outputs)…
Here is the full code:
And now, a run:
WSQ03 – Fun With Numbers by hectorbuenoolea is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.