bevo009
4/1/2018 - 10:27 AM

Beers on the Wall - For Loop

Beers on the Wall - For Loop

main() {
  
  for (int beers = 9; beers > 0; beers --) {
    print('$beers bottles of beer on the wall, $beers bottles of beer on the wall, take one down, pass it around, ${beers - 1} bottles of beer on the wall.');
  }  
}