Cody

Problem 44240. Area of a Square

Solution 3158216

Submitted on 11 Oct 2020 by Eric Mueller
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
x = 1; A = 1; assert(isequal(sq_area(x),A))

2   Pass
x = 2; A = 4; assert(isequal(sq_area(x),A))

3   Pass
x = 6; A = 36; assert(isequal(sq_area(x),A))

4   Pass
x = 8; A = 64; assert(isequal(sq_area(x),A))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!