Columnar results in C++ Vis Basic

Ok, I need the results to be displayed as such:

laid out in a business-like, columnar report

Can someone assist me on how to accomplish?
Use setw() and setprecision() in the iomanip header
e.g. cout<<setw(4)<<n<<setw(3)<<y<<endl;
Topic archived. No new replies allowed.