In this case was the same as WSQ03, the sum, difference, product, division and its reminder of 2 integer numbers. But with now was necessary to create a function for each operation.
The correct sintaxis for a function is:
int example (int parameter){ return int; } |
---|
If the function is an int, it should return an integer value.
The code is here: Functions.cpp
#WSQ08 On to Functions by eduardomacielm is licensed under a Creative Commons Attribution 4.0 International License.