First of all, use the same (in absolute value) starting point sc, otherwise, you won't be able to compare and understand what is going on. When debugging, the first rule is to make one change at a time. (I would advise you to use more meaningful names for your variables and round the printout to...