Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • You're restoring the value of 1 at the end of IMDFY. Please try the code in my answer (omitting the PROGRAM header and changing PRINT to WRITE, if necessary).
    – Leo B.
    Commented May 26, 2021 at 22:26
  • Thanks, @LeoB.! Your program, modified slightly, produced the expected if odd) result. I'll rewrite the answer
    – scruss
    Commented May 26, 2021 at 23:00
  • 4
    I do note that one Jimi Hendrix was aware of this, but evolved programming techniques to avoid problems: "if six turned out the be nine, I don't mind".
    – dave
    Commented May 28, 2021 at 11:34
  • I deleted a previous comment - I'd looked at this thread on an inadequate screen and thought the code had literally 3 = 1. Nevermind....
    – dave
    Commented May 29, 2021 at 2:18