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 58909

Submitted on 10 Mar 2012

Incorrect

11Size
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
Fail
 
%%
x = 10; % peddlers-IV under every helper-III
y = 1000000; % net dollars minimum
z = 1; % retire counter minimum
assert(10==Pyramidad(y,z))
Error: Assertion failed.
2
Fail
 
%%
x = 10; % peddlers-IV under every helper-III
y = 1999000; % net dollars minimum
z = 2; % retire counter minimum
assert(10==Pyramidad(y,z))
Error: Assertion failed.
3
Fail
 
%%
x = 5; % peddlers-IV under every helper-III
y = 373000; % net dollars minimum
z = 3; % retire counter minimum
assert(5==Pyramidad(y,z))
Error: Assertion failed.