Problem 42406. Divisible by 4
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
J. S. Kowontanon 30 Mar 2018
In general, this solution is not valid for single digit numbers.
-
1 Comment
Asif Iqbalon 9 Jun 2017
code won't work for 0,4,8 I just took advantage of test code :(
-
1 Comment
J. S. Kowontanon 30 Mar 2018
If input n_str = < '9', then you get Error: Subscript indices must either be real positive integers or logicals.
Problem Recent Solvers302
Suggested Problems
11378 Solvers
Set the array elements whose value is 13 to 0
1171 Solvers
588 Solvers
540 Solvers
4453 Solvers
从这个作者139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!