Cody

Solution 672241

Submitted on 20 May 2015 by srujana vantikommu
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 = 16; n=2 y_correct = 'true'; assert(isequal(Powerof(x,n),y_correct))

n = 2 y = true

2   Pass
%% x = 14; n=2 y_correct = 'false'; assert(isequal(Powerof(x,n),y_correct))

n = 2 y = false

3   Pass
%% x = 64; n=4 y_correct = 'true'; assert(isequal(Powerof(x,n),y_correct))

n = 4 y = true

4   Pass
%% x = 625; n=5 y_correct = 'true'; assert(isequal(Powerof(x,n),y_correct))

n = 5 y = true

5   Pass
%% x = 15; n=5 y_correct = 'false'; assert(isequal(Powerof(x,n),y_correct))

n = 5 y = false