The fantastic fourth

For WSQ03 I did what was required but I tried to go a little further with my code. 

First, I researched about how to make it work with the addition of two numbers, and then with that information I developed the substraction, product, and divition. These webpages are great for that information: 

http://www.programmingsimplified.com/cpp/source-code/add-numbers

http://stackoverflow.com/questions/7070346/c-best-way-to-get-integer-division-and-remainder

Then, I tried to play with some sort of loop that could repeat the process if the answer of the user to “Again?” is “yes”. This webpage explains how that works with “If”:

http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm

Now, “if” only made it work one time, and I wanted to run the program in a loop. For that, I used this website that explains loops:

http://www.tutorialspoint.com/cplusplus/cpp_do_while_loop.htm

I used the “do… while” loop, which basically continues to run your code while any condition is given. With this,  I succeeded in making a loop that could continue to run until the answer to the question was not an affirmation.

If anybody needs help, you can check out my code here:

https://github.com/opezaimd/TC101/blob/master/WSQ03

CC BY 4.0 The fantastic fourthFor WSQ03 I did what was required but I… by Omar Peza is licensed under a Creative Commons Attribution 4.0 International License.