Surface Area and Volume of Cuboid
Submissions: 2168   Accuracy:


  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

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

22 6

Testcase 1:
total surface area for the given cuboid is 22 and its volume 6.

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

Author: dipjal1996

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.