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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.

911 correct solutions
889 incorrect solutions

Last solution submitted on Oct 07, 2015

3 players like this problem

1 Comment

srujana vantikommu
on 22 May 2015

what is the problem in my solution? why it is showing error.

1 Comment

Lukas
on 9 Nov 2014

Did I miss the twist?

1 Comment

Sam
on 23 May 2012

D: What the ...
Hooray BEER! :D

8 Comments