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

Problem 1548. Vector of numbers divisible by 3

Created by Marek Kuklis
  • Input(n) - any integer
  • Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0

Examples:

  • n=6; v=[6 3]
  • n=-16; v=[-15 -12 -9 -6 -3]

Tags

Problem Group

Solution Statistics

47 correct solutions 62 incorrect solutions
Last solution submitted on Dec 05, 2014

Solution Comments