Cody

Problem 2027. Consecutive Powers

Solution 363139

Submitted on 2 Dec 2013
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
%% x=conpow(); d = x(1)^x(2)-x(3)^x(4); y_correct = 1; assert(isequal(d,y_correct))

Error: Error: File: conpow.m Line: 1 Column: 1 The variable y was mentioned more than once as an output.

Suggested Problems

More from this Author11

Community Treasure Hunt

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

Start Hunting!