This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
d1 = 2;d2 = 1;
n_correct = 4;
assert(isequal(Pizza2(d1,d2),n_correct))
p =
4
ans =
[]
|
2 | Pass |
d1 = 1;d2 = 2;
n_correct = 0.25;
assert(isequal(Pizza2(d1,d2),n_correct))
p =
0.2500
ans =
[]
|
3 | Pass |
d1 = 5;d2 = 7;
n_correct = 0.75;
assert(isequal(Pizza2(d1,d2),n_correct))
p =
0.7500
ans =
[]
|
4 | Pass |
d1 = 7;d2 = 5;
n_correct = 2;
assert(isequal(Pizza2(d1,d2),n_correct))
p =
2
ans =
[]
|
1901 Solvers
Remove the small words from a list of words.
672 Solvers
Create a square matrix of multiples
383 Solvers
5468 Solvers
Find the area of a triangle having vertices (A,B), (C,D), and (E,F)
28 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!