cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
need help about while
need help about while
Mar 26, 2013 at 7:36pm UTC
xantares
(4)
solved
Last edited on
Mar 27, 2013 at 9:42am UTC
Mar 26, 2013 at 9:21pm UTC
Daleth
(1030)
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.