러스트1 [Rust] 99병의 맥주 fn main() { 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.\n"); for i in (1..99).rev() { 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.\n"); } else { print!("{} bottles of beer on the wall, {} bottles of beer. Take one down and pass.. 2022. 6. 23. 이전 1 다음