CJCoding With Joseph

Rectangle Area Function

Write a function int area(int width, int height) that returns the area of a rectangle (width times height).

For area(4, 5) the program prints 20.

Expected Output:

20
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.