Teknologiskolen

RC2019 – Function assignment – 3

Explanation: When the function “doubleThisNumber()” is called with an int as an argument, the code inside is executed (it doubles the value of the number, and returns it). Afterwards, the returned number is stored in the variable “myDoubledNumber” and which is then printed in the serial monitor.