WSQ 05 – On to functions

--Originally published at Solving problems with programming

The most easy assigment i have done, obviously not perfect so if you have more efficients codes please give me your feedback.

the best tip i can give you it´s to ask yours friends how functions work, I already help some of friends and my twin brother, so you can ask me if you need it too.

github link (feel free to use it):

Haga click para ver el pase de diapositivas.


On To Functions

--Originally published at Programming in C++



This program is similar to the first one we did, except we use functions.

How does functions work? For functions we write a part of the code outside our main, and the we call for it in the main.

Basically we did each operation in different pieces, and then we call them when needed.

In this specific program there are more code lines in the function version than in the original, but in bigger program it can be useful.



Our main code calling the operations