# Answer to Question #2037 in MatLAB | Mathematica | MathCAD | Maple for Jayesh

Question #2037

Write a user-defined MATLAB function (named DivisibleByThree) that

takes one single-valued input argument and checks whether the input argument is divisible

by 3. If the input argument is divisible by 3, the function should return 1; otherwise, it returns

0.

takes one single-valued input argument and checks whether the input argument is divisible

by 3. If the input argument is divisible by 3, the function should return 1; otherwise, it returns

0.

Expert's answer

## Comments

## Leave a comment