Sep 26, 2014 at 2:10am
The values are fine, you just have no spacing so it looks incorrect. Try putting a '\n' after you output z and check the results again.
Sep 26, 2014 at 2:11am
The output might be a bit clearer and make sense if you put an << endl; at the end of line 8
Makes sense to me :-)
Sep 26, 2014 at 2:22am
:p Yes, you are right!Thanks