Cody

Problem 2945. Skip by a multiple

Solution 3435708

Submitted on 27 Oct 2020 by Cheng Jin
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))

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

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

y = 13 26 39 52 65 78 91 104 117 130 143 156 169 182 195

Suggested Problems

More from this Author8

Community Treasure Hunt

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

Start Hunting!