|All-time Popular Problems|
|Check if subtree|
|Delete Middle of Linked List|
|Given a linked list of 0s, 1s and 2s, sort it.|
|Count nodes of linked list|
|Delete N nodes after M nodes of a linked list|
|Check for Balanced Tree|
|Remove every k'th node|
|k largest elements|
|0 - 1 Knapsack Problem|
|Subarray with given sum|
Today your task is simple. You have to calculate area of circle and rectangle depending upon user's choice.
First line of the input contains an integer T which denotes the number of test cases. Then T test cases follow. Each test case contains two lines. First line contain 1 for circle or 2 for rectangle.Second line contains integers R(radius) or L(length) and B(Breadth)(space separated).
For each test case, print area of circle or rectangle.
1 <= T< = 10
Note: Use Math.PI for pi value.