Problem 42406. Divisible by 4
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
J. S. Kowontan
on 30 Mar 2018
In general, this solution is not valid for single digit numbers.
-
1 Comment
Asif Iqbal
on 9 Jun 2017
code won't work for 0,4,8 I just took advantage of test code :(
-
1 Comment
J. S. Kowontan
on 30 Mar 2018
If input n_str = < '9', then you get Error: Subscript indices must either be real positive integers or logicals.
Problem Recent Solvers301
Suggested Problems
-
Select every other element of a vector
25167 Solvers
-
Arrange vector in ascending order
689 Solvers
-
There are 10 types of people in the world
624 Solvers
-
1105 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1072 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!