Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Code:
    <script type='text/javascript'>
    for(i=1;i<101;i++) document.write(i+": "+(i%3==0?'fizz':'')+(i%5==0?'buzz':'')+'<br />');
    </script>

  2. #12
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Apolva View Post
    Code:
    <script type='text/javascript'>
    for(i=1;i<101;i++) document.write(i+": "+(i%3==0?'fizz':'')+(i%5==0?'buzz':'')+'<br />');
    </script>
    Cool stuff, you're good at coding.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •