Anonymous user
99 bottles of beer: Difference between revisions
→Console: Split a line so it fit on the page
m (→GUI: I forgawt) |
(→Console: Split a line so it fit on the page) |
||
Line 37:
public static void main(String[] args){
for(int x = 99;x>=1; --x)
System.out.println(x+"bottles of beer on the wall\n"+x+"bottles of beer\n"+"Take one down, pass it around\n"+
(x-1)+"bottles of beer on the wall\n");
}
}</java>
===GUI===
{{works with|Swing}}
|