public class Bottles
{
public static void main (String[] args)
{
int bottles = 99;
while (bottles > -9001)
{
System.out.println (bottles+" bottles of beer on the wall, "+bottles+"bottles of beer.");
bottles--;
System.out.println ("If one of those bottles should happen to fall, "+bottles+"bottles of beer on the wall.");
}
System.out.println ();
System.out.println ("You know what? It's OVER NEGATIVE 9000!!!!");
System.out.println ("Now you owe beer to the wall... :)");
System.out.println ("Yeah, the wall really needs beer...");
System.out.println ("Okay, I'm done. TA-TA!!!");
}
}
{
public static void main (String[] args)
{
int bottles = 99;
while (bottles > -9001)
{
System.out.println (bottles+" bottles of beer on the wall, "+bottles+"bottles of beer.");
bottles--;
System.out.println ("If one of those bottles should happen to fall, "+bottles+"bottles of beer on the wall.");
}
System.out.println ();
System.out.println ("You know what? It's OVER NEGATIVE 9000!!!!");
System.out.println ("Now you owe beer to the wall... :)");
System.out.println ("Yeah, the wall really needs beer...");
System.out.println ("Okay, I'm done. TA-TA!!!");
}
}
(0) Comments
Post a Comment