Cody

Problem 44807. Number Power

Solution 1703674

Submitted on 7 Jan 2019
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
n = 1; y_correct = 1; assert(isequal(pwr(n),y_correct))

Error in solution Line: 2 Column: 7 Invalid expression. Check for missing or extra characters.

2   Fail
n = 2; y_correct = 4; assert(isequal(pwr(n),y_correct))

Error in solution Line: 2 Column: 7 Invalid expression. Check for missing or extra characters.

3   Fail
n = 3; y_correct = 27; assert(isequal(pwr(n),y_correct))

Error in solution Line: 2 Column: 7 Invalid expression. Check for missing or extra characters.

4   Fail
n = 4; y_correct = 256; assert(isequal(pwr(n),y_correct))

Error in solution Line: 2 Column: 7 Invalid expression. Check for missing or extra characters.

5   Fail
n = 5; y_correct = 3125; assert(isequal(pwr(n),y_correct))

Error in solution Line: 2 Column: 7 Invalid expression. Check for missing or extra characters.

6   Fail
n = 9; y_correct = 387420489; assert(isequal(pwr(n),y_correct))

Error in solution Line: 2 Column: 7 Invalid expression. Check for missing or extra characters.