There will be 9 tests for this problem.
In each test you will be provided with 2 integers n=[n1,n2].
Your code should return n1 * (remainder(n1/n2) + 2) + (remainder(n1/n2) + 1)
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers117
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15821 Solvers
-
Number of 1s in the Binary Representation of a Number
490 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
984 Solvers
-
Create a two dimensional zero matrix
587 Solvers
-
Matlab Basics - Convert a row vector to a column vector
685 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The problem description is broken(?) and you have mentioned the code in the test suite (you might want to remove that)
The test suite has had the "solution" code removed. The description was also cleaned up. (If it's not loading, simply reload the page.) I'm not sure how much these fixes help, though...