#include<iostream> #include<iomanip> using namespace std; int main(){ double a=147.369,b=3.46168,c=-4572.67; cout<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(3); cout<<setw(10)<<a<<endl; cout<<setw(20)<<b<<endl; cout<<setw(30)<<c<<endl; }