Cody

Problem 43071. How do you make seven even?

Solution 1486066

Submitted on 10 Apr 2018 by Garrett Pesi
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
s = 1; y_correct = 6; assert(isequal(even(s),y_correct)) s = -1; y_correct = 8; assert(isequal(even(s),y_correct))

S = 6 S = 8

Suggested Problems

More from this Author15

Community Treasure Hunt

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

Start Hunting!