Practice
Calculate Rectangle Area
EASYArithmetic3 marks
Read the length and width of a rectangle and output its area.
Input: The length and width as two positive numbers on separate lines. Output: The area of the rectangle.
Example:
Input: 5
3
Output: 15
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Whole-number dimensions
Inputs: 5, 3
Expected: 15
Test 2: Decimal length
Inputs: 7.5, 2
Expected: 15