Rectangle Class

PHP Easy 7 views
Back to Questions
Next Counter Object Easy N

Problem Description

Create a Rectangle class with width and height. Print area and perimeter.

Input Format

One line: w h.

Output Format

Two integers: area perimeter.

Sample Test Case

Input:
3 5
Output:
15 16

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next