Cody

Problem 44391. For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?

Solution 2669891

Submitted on 9 Jul 2020 by Ramesh Kumar V
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   Pass
A = 200; y_correct = 10; assert(isequal(length_of_rect(A),y_correct))

2   Pass
A = 32; y_correct = 4; assert(isequal(length_of_rect(A),y_correct))

3   Pass
A = 18; y_correct = 3; assert(isequal(length_of_rect(A),y_correct))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!