Problem 42409. Divisible by 7
Solution Stats
Problem Comments
Solution Comments
-
4 Comments
I didn't see that the check for the multiplication symbol was commented out for this test suite until I checked your solution...
Sorry about that. I added a statement that that function restriction is lifted in the problem description. Still, I'm impressed that you were able to solve it without using that function.
No worries. Multiplication without the * symbol is easy enough. There's a reason the final variable in my first solution is named "cheat" though; I had no idea how to accomplish the final check otherwise.
Well, I'll take that as a compliment, then, because your problems are clever and often stump me.
Problem Recent Solvers155
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
41438 Solvers
-
Back to basics 9 - Indexed References
413 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
190 Solvers
-
Side of an equilateral triangle
4227 Solvers
-
Check that number is whole number
2315 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!