This solution is outdated. To rescore this solution, sign in.
Because the solution can be spelled
like pizza, pi*z*z*a !!!
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
z = 1;
a = 1;
v_correct = pi;
assert(isequal(pizza(z,a),v_correct))
|
2 | Pass |
%%
z = 2;
a = 1;
v_correct = 4*pi;
assert(isequal(pizza(z,a),v_correct))
|
3 | Pass |
%%
z = 1;
a = 2;
v_correct = 2*pi;
assert(isequal(pizza(z,a),v_correct))
|
4 | Pass |
%%
z = 1;
a = 2;
v_correct = 2*pi;
assert(isequal(pizza(z,a),v_correct))
|
14340 Solvers
1610 Solvers
Read a column of numbers and interpolate missing data
794 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
196 Solvers
Back to basics 25 - Valid variable names
253 Solvers