Maximum Area Rectangle
Submissions: 820   Accuracy:


  Difficulty: Easy   Marks: 2
Associated Course(s):   Fork Java

Given length L and breadth B of N rectangles. The task is to return maximum area of the rectangle.

First line of input contains number of testcases T. For each testcase, there will be two lines, first of which contains N, number of rectangle, next line contains length and breadth of N rectangles.

For each testcase, output maximum area of rectangle.

User Task: Your task is to complete the function calculate_Area() which returns maximum area. Use area() function in Rectangle class.

1 <= T <= 10
1 <= N <= 103
1 <= L, B <= 104
1 <= Area <= 108

Example :

1 2 3 4 5 6


Testcase 1:
Area of rectangle with length 5 and breadth 6 is maximum, and is equal to 30.


** For More Input/Output Examples Use 'Expected Output' option **

Author: Dhiman Mayank

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

Need help with your code? Please use, generate link and share the link here.

to report an issue on this page.