Guest User

Untitled

a guest
Oct 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class 99bottles {
  2.  
  3. public static void main (String[] args) {
  4.  
  5. String word = "bottles";
  6. x bottle = 99;
  7.  
  8. for (int i==0; i<99; i--) {
  9. if (i == 1) {
  10. word = "bottle";
  11. }
  12.  
  13. System.out.println();
  14. System.out.println(i+ "Bottles of beer on the wall, " + i + " bottles of beer.");
  15.  
  16. int y = i - 1 ;
  17. System.out.println("Take one down and pass it around, " + y + " bottles of beer on the wall.");
  18.  
  19.  
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment