Bottles of beer - MATLAB Cody - MATLAB Central

Problem 304. Bottles of beer

Difficulty:Rate

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

43.93% Correct | 56.07% Incorrect
Last Solution submitted on Jan 06, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
3

Problem Recent Solvers2199

Suggested Problems

More from this Author39

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page