This program should give you the same results as the WSQ03 but using function for each operation.
So basically, I write single functions, to the sum, product, difference, and division operations. Using void instead of int. And this was kind of quickly because I just copy the main code from de WSQ03, and then I started to editing what I needed.
Here’s the link to my GitHub.