(Credit goes to http://9gag.com/gag/avgrDDb)
In this assigment, I had to do the following:
- Ask the user for two integer values.
- The sum of the two numbers.
- 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.
This is what I did first:
Then, I compiled it in Cygwin:
However, I had some errors.
But at the end, I aced it.
As you can see, I had a little trouble doing this. I tried it like 5 times, but with the help of the book “How to think like a computer scientist”, I finally did it.
Link to my code:
https://github.com/anagloriaac/WSQ/tree/master
WSQ03 – FUN WITH NUMBERS by Ana Gloria Angulo is licensed under a Creative Commons Attribution 4.0 International License.