This solution is outdated. To rescore this solution, sign in.
This function pizza gives its volume which is also it's name.
F(z) = pi*(z^2)*a;
delicious= pi*z*z*a;
this should be an awesome pi*z*z*a
ometimes “pizza” can be a formula and a food (number 13 makes everyone smile)
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))
|
4828 Solvers
Find the alphabetic word product
1996 Solvers
468 Solvers
Omit columns averages from a matrix
482 Solvers
254 Solvers