{"id":23683,"date":"2021-10-03T20:26:56","date_gmt":"2021-10-03T14:56:56","guid":{"rendered":"https:\/\/python-programs.com\/?p=23683"},"modified":"2021-11-22T18:33:26","modified_gmt":"2021-11-22T13:03:26","slug":"python-program-for-maximize-volume-of-cuboid-with-given-sum-of-sides","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-maximize-volume-of-cuboid-with-given-sum-of-sides\/","title":{"rendered":"Python Program for Maximize Volume of Cuboid with Given Sum of Sides"},"content":{"rendered":"

Given the sum of length, breadth, and height of a cuboid say S<\/strong> and the task is to get the maximum volume of a cuboid such that the sum of the side is S<\/strong>.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given sum = 5<\/pre>\n

Output:<\/strong><\/p>\n

The maximum volume of a cuboid such that the sum of the side { 5 } =  4<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given sum = 11<\/pre>\n

Output:<\/strong><\/p>\n

The maximum volume of a cuboid such that the sum of the side { 11 } = 48<\/pre>\n

Program for Maximize Volume of Cuboid with Given Sum of Sides\u00a0in Python<\/h2>\n

Below are the ways to get the maximum volume of a cuboid such that the sum of the side is S <\/strong>in python:<\/p>\n