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 |
a = 8;
n = 5;
y = 1600;
assert(isequal(squartArea(n,a),y))
|
2 | Pass |
a = 0;
n = 10;
y = 0;
assert(isequal(squartArea(n,a),y))
|
3 | Pass |
a = 100/pi;
n = 6;
y = 36476;
tolerance = 1e-12;
assert(abs(36476-y)<tolerance)
|
4 | Pass |
a = 15;
n = 0;
y = 0;
assert(isequal(squartArea(n,a),y))
|
5 | Pass |
a = 10;
n = 2;
y = 400;
assert(isequal(squartArea(n,a),y))
|
129 Solvers
2617 Solvers
253 Solvers
199 Solvers
Convert from Fahrenheit to Celsius
7127 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!