Cody

Problem 1355. Given area find sides

Solution 2487620

Submitted on 7 Jun 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
A = 400; y_correct = 20; assert(isequal(findside(A),y_correct))

Unrecognized function or variable 'x'. Error in findside (line 2) y = x^2; Error in Test1 (line 3) assert(isequal(findside(A),y_correct))

2   Fail
A = 144; y_correct = 12; assert(isequal(findside(A),y_correct))

Unrecognized function or variable 'x'. Error in findside (line 2) y = x^2; Error in Test2 (line 3) assert(isequal(findside(A),y_correct))

3   Fail
A = 225; y_correct = 15; assert(isequal(findside(A),y_correct))

Unrecognized function or variable 'x'. Error in findside (line 2) y = x^2; Error in Test3 (line 3) assert(isequal(findside(A),y_correct))

4   Fail
A = 256; y_correct = 16; assert(isequal(findside(A),y_correct))

Unrecognized function or variable 'x'. Error in findside (line 2) y = x^2; Error in Test4 (line 3) assert(isequal(findside(A),y_correct))

Suggested Problems

More from this Author13

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!