How do I go about writing "100 bottles of beer on the wall" in javascript using a while loop? - 100 bottles of beer slots machines
This has been asked and answered before. Do you have the first question?
Thursday, February 4, 2010
100 Bottles Of Beer Slots Machines How Do I Go About Writing "100 Bottles Of Beer On The Wall" In Javascript Using A While Loop?
Subscribe to:
Post Comments (Atom)
var i = 100;
ReplyDeletevar sentence = 'bottles of beer on the wall ";
/ / Here's the loop
while (i> = 0)
(
if (i == 1)
(
Set = 'bottles of beer on the wall ", / / if it does not appear, it would read" 1 bottles of beer on the wall "
)
document.write (i + set + '\\ \\ \\ \\ \\ \\ \\ \\ u0026lt; br>');
i = i - 1, / / i work - again
)
var i = 100;
ReplyDeletevar sentence = 'bottles of beer on the wall ";
/ / Here's the loop
while (i> = 0)
(
if (i == 1)
(
Set = 'bottles of beer on the wall ", / / if it does not appear, it would read" 1 bottles of beer on the wall "
)
document.write (i + set + '\\ \\ \\ \\ \\ \\ \\ \\ u0026lt; br>');
i = i - 1, / / i work - again
)
+ Write a string and the string 101, but are subtracted before writing the letter to 1 in the chain.
ReplyDeleteYou can also use the 100 and having the chain, who loves, never