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?

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?

3 comments:

  1. var i = 100;
    var 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
    )

    ReplyDelete
  2. var i = 100;
    var 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
    )

    ReplyDelete
  3. + Write a string and the string 101, but are subtracted before writing the letter to 1 in the chain.

    You can also use the 100 and having the chain, who loves, never

    ReplyDelete