need help about while

solved
Last edited on
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.