Given the following cout statement Recode the cout statement
Given the following cout statement: Re-code the cout statement so that the value is displayed on the screen left justified, with a print field width of 10.
Solution
User the header file: #include <iomanip>
cout<<left<<setw(10)<<value<< endl;
In order to print the data left justified I used left.
In order to set the width to 10 I used setw(10).
