Rectangle Class

Easy

📝 Description

Create a Rectangle class with area and perimeter methods

Input Format

Width and height values

Output Format

Area and perimeter calculations

Constraints

Positive dimensions only

🔍 Sample Input

5 3
            

✅ Sample Output

Area: 15
Perimeter: 16
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run