Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by tgeorge ( 6 years ago )
/**
* This program will print the lyrics to 99 bottles
*
* @tgeorge
* @11/12
*/
public class ninteynine
{
public static void main(String [] args)
{
int x=100;
while(x>1)
{
System.out.println(x+" bottles of root beer on the wall,");
System.out.println(x+" bottles of root beer!");
System.out.println("Take one down,");
System.out.println("Pass it around,");
System.out.println(x-1+" bottles of root beer on the wall!");
System.out.println();
x--;
}
System.out.println("1 bottle of root beer on the wall,");
System.out.println("1 bottle of root beer!");
System.out.println("Take one down,");
System.out.println("Pass it around,");
System.out.println();
System.out.println("No more bottles of root beer on the wall!");
}
}
Revise this Paste
Parent: 112260