Task today was to ask for 2 integer numbers in order to do various mathematical operations.
- 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.
- And as a bonus, addition.
First ask for the numbers:
Second, write the commands the program will run:
Third, thing to do is to compile your program.
Next, you must run it
And there you have it… Really simple program, but I had help from my friend Christian, because he knows more than me 😀
Fun with Numbers #WSQ03 by canadamike17 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.