Printing the values
The first statement in Listing 6:
int main(){ //Print the first row in the table // consisting of two columns. cout << setw(10) << setprecision(1) << fixed << 1.5; cout << setw(12) << setprecision(3) << fixed << 2.2 << endl; Listing 6 |
The second statement in Listing 6: