CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 2

2. Write a program to display the following output using a single cout statement.

   Subject            Marks
   Mathematics     90
   Computer         77
   Chemistry        69

This assignment was not too difficult.  I was able to accomplish this utilizing a similar approach to the first assignment.  To simply put it, I incorporated the correct spacing by "tabbing" after each column, at least 3 times.  See below.



Here's the output, which was a success!



Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 7