스위프트1 [Swift & Go] 99병의 맥주 import Foundation print("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.") for i in (2...98).reversed() { if(i==2) { print("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.") } else { print(i, "bottles of beer on the wall,", i, "bottles of beer. Take one down and.. 2022. 6. 21. 이전 1 다음