Problem 304. Bottles of beer
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.
Solution Stats
Problem Comments
-
10 Comments
Show
7 older comments
Emilio Calabuig
on 25 May 2015
Easy!
mohd mu'aazullah yaakob
on 27 Dec 2016
good
Angela Labianca-Campbell
on 17 Jan 2017
Simply fun.
Solution Comments
Show commentsProblem Recent Solvers2199
Suggested Problems
-
Create a cell array out of a struct
2084 Solvers
-
423 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
613 Solvers
-
Given a window, how many subsets of a vector sum positive
857 Solvers
-
571 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!