%% SL 49
function out = cuboid(a, b, c, attribute)
out = [];
if nargin < 4
   fprintf('Wrong input\n');
   return
end

switch attribute
   case 'volume'
      out = a*b*c;
   case 'area'
      out = 2*(a*b+b*c+c*a);
   case 'diagonal'
      out = sqrt(a^2+b^2+c^2);
   otherwise
      fprintf('Wrong input\n');
end
end