Sum of n numbers till encounters -999 using C program

Sum of n numbers till encounters -999 using C program will check the number is equal to -999. If it is same, then it will break the statement. Otherwise it will sum the given numbers and executes the condition until the condition is unsatisfied.