The problem with my code is that takes the -1 entered by the user and adds it to the sum. I think I\'m missing something very simple. Here is my code:
dou