Re: Reverse Loop?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Butler

    #1

    Re: Reverse Loop?


    ----- Original Message -----
    From: "Cor Ligthert[MVP]" <notmyfirstname @planet.nl>
    Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    Sent: Sunday, May 18, 2008 12:05 AM
    Subject: Re: Reverse Loop?

    Scott,
    >
    Nice solution, however why then not
    >
    for (int i = 160;i>100;i--)
    {
    console.writeli ne(i/2);
    }
    >
    However the idea was yours
    >
    And it won't work either.....inte ger math

    I am sure you knew that, Cor....So you may proceed to kick yourself now.
    <grin>

    console.writeli ne(i/2.0); // That's better

    Bill


  • Cor Ligthert[MVP]

    #2
    Re: Reverse Loop?

    Bill,

    I saw it, see my next message, what was written before I saw your reply

    However I smile in a good mood that somebody saw it.

    :-)

    Cor

    "Bill Butler" <qwerty@asdf.co mschreef in bericht
    news:D6PXj.2132 $Zy1.1252@trndn y05...
    >
    ----- Original Message -----
    From: "Cor Ligthert[MVP]" <notmyfirstname @planet.nl>
    Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    Sent: Sunday, May 18, 2008 12:05 AM
    Subject: Re: Reverse Loop?
    >
    >
    >Scott,
    >>
    >Nice solution, however why then not
    >>
    >for (int i = 160;i>100;i--)
    >{
    > console.writeli ne(i/2);
    >}
    >>
    >However the idea was yours
    >>
    >
    And it won't work either.....inte ger math
    >
    I am sure you knew that, Cor....So you may proceed to kick yourself now.
    <grin>
    >
    console.writeli ne(i/2.0); // That's better
    >
    Bill
    >
    >

    Comment

    Working...