Looping the Sum of numbers (Inputs) in C

Give the c code for a loop that computes and displays a sum of numbers that the user enters. The loop should prompt the user for input until the user enters -335 and then exit and display the final sum.

This is what I have. Why does it not print (exit the loop) when I enter -335? It just keeps asking me to input a number.