Cody

Problem 2027. Consecutive Powers

Solution 2845575

Submitted on 17 Aug 2020
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: File: conpow.m Line: 1 Column: 16 Repeating output argument 'x' in the function declaration is not supported Error in Test1 (line 1) x=conpow();

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!