Modify the program in Figure 6.8 so that it separately computes and prints the sum of all positive numbers and all negative numbers and stops when it sees the value 0 . For example, given the input $12,-2,14,1,-7,0$
your program should output the two values 27 (the sum of the three positive values 12,14 , and 1 ) and -9 (the sum of the two negative numbers -2 and -7 ) and then halt.