Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 59356

Submitted on 11 Mar 2012 by @bmtran

Correct

25Size
Leading solution size is 16.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = 10; % peddlers-IV under every helper-III
y = 1000000; % net dollars minimum
z = 1; % retire counter minimum
assert(10==Pyramidad(y,z))

                    
2
Pass
 
%%
x = 10; % peddlers-IV under every helper-III
y = 1999000; % net dollars minimum
z = 2; % retire counter minimum
assert(10==Pyramidad(y,z))

                    
3
Pass
 
%%
x = 5; % peddlers-IV under every helper-III
y = 373000; % net dollars minimum
z = 3; % retire counter minimum
assert(5==Pyramidad(y,z))