Given length l, width b and height h of a cuboid. The task is to find the total surface area and volume of cuboid.
The first line of the input contains T, denoting the number of testcases. Each of the next T lines contains three space separated positive integers l, b, h denoting the length, width and height of cuboid in same line separated by space.
For each testcase in new line, output two space separated integers denoting surface area and volume of cuboid respectively.
1 <= T <= 100
1 <= l, b, h <= 103
1 2 3
Testcase 1: total surface area for the given cuboid is 22 and its volume 6.
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.