Problem 42442. Determine if input is divisible by three.

Created by Paul Stewart in Community

Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

Solution Stats

85.35% Correct | 14.65% Incorrect
Last solution submitted on Feb 27, 2019

Solution Comments

Recent Solvers118

Suggested Problems


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!