Calculate Area of a Rectangle - Practice - Prepverse 🎓
Toggle Sidebar
Practice
GEOMETRY
Calculate Area of a Rectangle
Search for mock interviews, practice sets...
⌘
K
Command Palette
Search for a command to run...
Calculate Area of a Rectangle
Prev
GEOMETRY
Next
Description
Submissions
Calculate Area of a Rectangle
Easy
GEOMETRY
Basic Operations
MATH
### Description
Write a function that takes the length and width of a rectangle as input and returns the area of the rectangle.
### Constraints
1 <= length, width <= 10^4
### Example
Input: 5,10
Output: 50
Examples
Example 1
Input:
5,10
Output:
50
Example 2
Input:
100,200
Output:
20000
Hint 1
Reset
Fullscreen
Loading...
Test Cases
Results
Run
Submit
Test Case 1
Test Case 2
Input:
5,10
Expected Output:
50
Prepverse
Dashboard
AI Mock Interviews
Practice
NEW
Contests
Test Series
NEW
Jobs
Sign In
v69806c1