cout << " what is the length ";
cin >> l;
cout << " what is the height ";
cin >> h;
cout << " what is the width ";
cin >> w;
//output
cout << " the volume is " << setprecision(2) << l * w *h << endl;
cout << " the surface area is " << setprecision(2) << ( 2 * l * h ) + 2 * ( h * w ) + 2 * ( l * w) << endl;
return 0;
}
I need decimal places after my output.
thanks for any help