Java1 [C++ & Java] 99병의 맥주 #include "stdio.h" void main() { printf("99 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall.\n"); for (int i = 98; i > 1; i--) { if (i == 2) { printf("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.\n"); } else { printf("%d bottles of beer on the wall, %d bottles of.. 2022. 1. 21. 이전 1 다음