Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class 99bottles {
- public static void main (String[] args) {
- String word = "bottles";
- x bottle = 99;
- for (int i==0; i<99; i--) {
- if (i == 1) {
- word = "bottle";
- }
- System.out.println();
- System.out.println(i+ "Bottles of beer on the wall, " + i + " bottles of beer.");
- int y = i - 1 ;
- System.out.println("Take one down and pass it around, " + y + " bottles of beer on the wall.");
- }
- }
Add Comment
Please, Sign In to add comment