You have not initialized sum=0 in the beginning. The variable sum, has a random value, that is stored in Ram at that location in memory where sum should be.
7
solved I think my code is all correct but it does not work
You have not initialized sum=0 in the beginning. The variable sum, has a random value, that is stored in Ram at that location in memory where sum should be.
7
solved I think my code is all correct but it does not work