WSQ05

--Originally published at TC 1017

ON TO FUNCTIONS!

At the beginning I didn’t understand what I had to do, but thanks to other classmates’ posts I got it.

It was just pretty easy to program, and so much similar to a previous one.

I learned that I had to declare the functions out of the main code. We have to use the “return” because the functions (sum, rest, dev, pro, and res) are kind of little pieces of code by itself, so they each one of them have to return a value.

Click to view slideshow.

You can go to my code at: https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLyRExGWk1TWl9hdE0/view?usp=sharing