99 bottles of beer on the wall

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

z0mb13

Lifer
May 19, 2002
18,106
1
76
79 bottles of beer on the wall
79 bottles of beer
take one down, pass it around.
78 bottles of beer on the wall

 

replicator

Senior member
Oct 7, 2003
431
0
0
for (int i = 78; i > 0; i--)
{
Console.Write("{0} bottles of beer on the wall!\n{0} bottles of beer!\n",i.ToString());
Console.Write("Take one down, pass it around!\n");
if (i == 1)
{
Console.Write("No bottles of beer on the wall!\n\n");
}
else
{
Console.Write("{0} bottles of beer on the wall!\n\n", (i-1).ToString());
}
}
 

JeffCos

Golden Member
Mar 10, 2003
1,615
5
81
78 bottles of nef on the wall
78 bottles of nef
take one down, pass it around.
77 bottles of nef on the wall

 

vshah

Lifer
Sep 20, 2003
19,003
24
81
78 bottles of beer on the wall
78 bottles of beer
take one down, pass it around
77 bottles of beer on the wall
 

wfbberzerker

Lifer
Apr 12, 2001
10,423
0
0
77 bottles of beer on the wall
77 bottles of beer
take one down, pass it around
76 bottles of beer on the wall
 

amol

Lifer
Jul 8, 2001
11,680
3
81
76 bottles of beer on the wall
76 bottles of beer
take one down, pass it around
75 bottles of beer on the wall
 

winr

Diamond Member
Feb 17, 2001
6,081
56
91
75 bottles of beer on the wall
75 bottles of beer
take one down, pass it around
74 bottles of beer on the wall




:)
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
I swear if even one of you goes into my liquor cabinet where i keep my good stuff all hell will break loose!
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
73 bottles of beer on the wall
73 bottles of beer
take one down, pass it around
73 bottles of beer on the wall

I tis my beer so I might as well join ya you filthy theives

EDIT: damn right I drank two of 'em
 

jagec

Lifer
Apr 30, 2004
24,442
6
81
cr equ 10d
lf equ 13d

cseg segment byte

assume cs:cseg, ds:cseg
org 100h

main proc
ini:
mov si, 50

lus:
mov ax, si
call int2strn

mov ah, 40h
mov bx, 1
mov cx, Bot2_Len
mov dx, offset Bot2_Msg
int 21h

mov ax, si
call int2strn

mov ah, 40h
mov bx, 1
mov cx, Bottle_Len
mov dx, offset Bottle_Msg
int 21h

mov ax, si
call int2strn

mov ah, 40h
mov bx, 1
mov cx, Pass_Len
mov dx, offset Pass_Msg
int 21h

sub si, 1
jnz lus

mov ah, 40h
mov bx, 1
mov cx, None_Len
mov dx, offset None_Msg
int 21h

mov ax, 4c00h
int 21h

main endp

int2strn proc near

mov cx,10
xor dx,dx
div cx
or al, al
jz next
push dx
mov dl,al
add dl,30h
mov ah,2
int 21h
pop dx
next:
mov ah,2
add dl,30h
int 21h
ret

int2strn endp


Bottle_Msg db ' bottles of beer on the wall, '
Bottle_Len equ $ - Bottle_Msg

Pass_Msg db ' bottles of beer. Take one down, pass it around.', cr, lf
Pass_Len equ $ - Pass_Msg

Bot2_Msg db ' bottles of beer on the wall.', cr, lf
Bot2_Len equ $ - Bot2_Msg

None_Msg db 'No more bottles of beer on the wall.', cr, lf
None_Len equ $ - None_Msg

cseg ends

end ini
 

Quasmo

Diamond Member
Jul 7, 2004
9,630
1
76
72 bottles of beer on the wall
72 bottles of beer
take one down, pass it around
71 bottles of beer on the wall
 

Quasmo

Diamond Member
Jul 7, 2004
9,630
1
76
541 posts in OT
541 posts
post a reply, nef all around
542 posts in OT
 

thomsbrain

Lifer
Dec 4, 2001
18,148
1
0
71 bottles of beer on the wall
71 bottles of beer
take one down, pass it around
70 bottles of beer on the wall
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
neffity neffity neffity nef
neffity neffity nef
nef neffity nef nef neffity nef
neffity neffity neffity nef
 

moomoo40moo

Golden Member
Jul 10, 2003
1,449
0
0
69 bottles of beer on the wall
69 bottles of beer
take one down, pass it around
68 bottles of beer on the wall
 

judasmachine

Diamond Member
Sep 15, 2002
8,515
3
81
68 bottles of beer on the wall
68 bottles of beer
take one down, pass it around
67 bottles of beer on the wall.
 

Abhi

Diamond Member
Sep 13, 2003
4,548
0
76
66 bottles of beer on the wall
66 bottles of beer
take one down, pass it around
65 bottles of beer on the wall
 

LtPage1

Diamond Member
Jan 15, 2004
6,311
2
0
65 bottles of beer on the wall
65 bottles of beer
take one down, pass it around
64 bottles of beer on the wall
 

gutharius

Golden Member
May 26, 2004
1,965
0
0
64 bottles of beer on the wall
64 bottles of beer
take one down, piss in it and pass it all around
64 bottles of beer on the wall YUM!!! :)
 

pennylane

Diamond Member
Apr 28, 2002
6,077
1
0
63 bottles of beer on the wall
63 bottles of beer
take one down, pass it around
62 bottles of beer on the wall