Check the logic in main method with the Presentation of output

why there is fail which is i have to check the logic in main method with the Presentation of output.

Sample Input :

Triangle

10

20

Sphere

14

Rectangle

14

15

Cube

5

7

9

Triangle

18

24

Sample Output

Area 100.0

Area 2463.0086404143976

Volume 11494.040321933855

Area 210.0

Area 286.0

Volume 315.0

Area 216.0

Note : Volume is displayed only when the shape is cube or sphere