for (int i = 99; i > 1; i--) { Console.WriteLine($"{i} bottles of beer on the wall, {i} bottles of beer. Take one down and pass it around - {i - 1} bottles of beer on the wall."); }
Console.WriteLine("1 bottle of beer on the wall, 1 bottle of beer. Take it down and pass it around - no more bottles of beer on the wall."); bash for bottles in $(seq 99 -1 3); do echo $bottles bottles of beer on the wall, $bottles bottles of beer. Take one down and pass it around - $(($bottles-1)) bottles of beer on the wall.; sleep 1; done; echo 2 bottles of beer on the wall, 2 bottles of beer. Take one down and pass it around - 1 bottle of beer on the wall.; echo 1 bottle of beer on the wall, 1 bottle of beer. Take it down and pass it around - no more bottles of beer on the wall.;
Python for i in range(99, 0, -1): if i == 1: print('1 bottle of beer on the wall, 1 bottle of beer!') print('So take it down, pass it around, no more bottles of beer on the wall!') elif i == 2: print('2 more bottles of beer on the wall, 2 more bottles of beer!') print('So take one down, pass it around, 1 more bottle of beer on the wall!') else: print('{0} bottles of beer on the wall, {0} bottles of beer!'.format(i)) print('So take it down, pass it around, {0} more bottles of beer on the wall!'.format(i - 1))