C++ Program to output addition of subjects and marks on multiple lines, using one line of code