View Single Post
Old Sep 29th, 2007, 7:42 AM   #2
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 245
Rep Power: 1 Jabo is on a distinguished road
Quote:
Originally Posted by truBlu1 View Post
for(int i = 0; i < n/2; i++)

i<n/2 is the problem i think. it should be, i<(n/2)-1
Jabo is offline   Reply With Quote