Menu

Would Write C Something Reads Integers Using Scanf Sentinel Value 999 Read Value 999 Read Q43884632

How would I write in C something that reads in integers usingscanf() and then when a sentinel value of -999 is read. Then oncethe value -999 is read to display the sum of all values that wereread. Also excluding the value of the -999. So I would want the sumof all values excluding -999 that were read in. If you could showme how to do this in C i would greatly appreciate it.

Expert Answer


Answer to How would I write in C something that reads in integers using scanf() and then when a sentinel value of -999 is read. Th…

OR