โ Back to Functions
Question 255
Double a Number
Double a Number
Write a function int doubleIt(int n) that returns n multiplied by 2.
For doubleIt(8) the program prints 16.Expected Output:
16
Topics:
Functions
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.