On to functions!

Remember by any chance my post fun with numbers? (If not, you can check it out here!) Well guess what, I did it again 😀 ,except this time I wrote a function for every operation. It was great practice on creating and calling functions, which I had already done in previous posts.

Without any further do, here is the changes I made on my original code:numbers2-0

I know it looks long and more complicated, but like I said, it was just for practice!

Anyhow, here’s how it runs:

numbers2-0run

One thought on “On to functions!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s