need help about while

Mar 26, 2013 at 7:36pm
solved
Last edited on Mar 27, 2013 at 9:42am
Mar 26, 2013 at 9:21pm
Your test in line 40 is not a test. "x = (n+1)/2" assigns the value to x.
The proper operator is "==", i.e. "x == (n+1)/2."
Topic archived. No new replies allowed.