Write a function to determine if a number is divisible by 21.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers53
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52667 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2822 Solvers
-
The Answer to Life, the Universe, and Everything
574 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
862 Solvers
-
508 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Divisible by 21 or by 7 ?
What is the name of the function that you want ?
divisible_by_21.m or divisible_by_7.m (you test both)
Why do you forbid all these functions ?
A lot of why ...
The problem maker in this case (no pun intended) simply copied the test case from my Divisible by 7 problem and made some edits, but obviously not enough to make it solvable. I've greatly simplified the test suite for this problem so that it is now solvable.
Thanks Grant.