Cody

Problem 2945. Skip by a multiple

Solution 2564490

Submitted on 15 Jun 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   Pass
x = 5; y_correct = [5:5:75]; assert(isequal(your_fcn_name(x),y_correct))

ans = 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

2   Fail
x = 13; y_correct = [13:13:195]; assert(isequal(your_fcn_name(x),y_correct))

ans = 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

Assertion failed.

Suggested Problems

More from this Author8