Cody

Problem 45537. Get the area of ​​the square.

Solution 2303115

Submitted on 20 May 2020 by Laza Álmos
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 = 0; y = 0; assert(isequal(squartArea(a),y))

2   Pass
a = 8; y = 256; assert(isequal(squartArea(a),y))

3   Pass
a = 1; y = 4; assert(isequal(squartArea(a),y))

4   Pass
a = 10; y = 400; assert(isequal(squartArea(a),y))

5   Pass
a = 50; y = 10000; assert(isequal(squartArea(a),y))

Suggested Problems

More from this Author2

Community Treasure Hunt

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

Start Hunting!