in reply to Printing Some Output

I guess you haven't heard of modulo arithmetic... :-) Try this:


Peter @ Berghold . Net

Sieze the cow! Bite the day!

Test the code? We don't need to test no stinkin' code! All code posted here is as is where is unless otherwise stated.

Brewer of Belgian style Ales

Replies are listed 'Best First'.
Re: Re: Printing Some Output
by Limbic~Region (Chancellor) on Aug 01, 2003 at 15:50 UTC
    blue_cowdawg,
    There are two slight problems with that. The first is that the increment will never happen since the if is never true - infinite loop. The second is the print "\n" after will cause the screen to go blank quick.

    Cheers - L~R

      I thought of that belatedly, but was hoping the OP would figure it out on their own...

      Besides... see the disclaimer in my .sig... :-)


      Peter @ Berghold . Net

      Sieze the cow! Bite the day!

      Test the code? We don't need to test no stinkin' code! All code posted here is as is where is unless otherwise stated.

      Brewer of Belgian style Ales