Write a program that adds all values stored in the array val and displays the
total. Modify the program to calculate and display the total of each row.