Write a program that reads integer sets and prints out the sum of the each integer set until 0 is read. Your program starts reading an integer N which is the number of integers to be read as the first set, then reads N many integers as the first integer set and prints the sum of the N integers. The program continues to read a second integer as the number of integers to be read as the second set, and so on. Your program must calculate and print the sum of the each integer set separated by a new line.
Examples:
INPUT OUTPUT
3
5 8 7
1
34
5
9 3 4 2 7
0
20
34
25
4
9 3 4 10
2
9 32
0
26
41
1
49
0
49
2
1 4
3
4 3 1
0
5
8


Important issues about all exams/projects/quizzes: