Cody

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

Solution 2291263

Submitted on 18 May 2020 by bainhome
  • Size: 12
  • This is the leading solution.
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