fork(2) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a = 123456;
  7. cout << setw(20) << right << a << endl;
  8. cout << left << setw(20) << a << '*' << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 4516KB
stdin
Standard input is empty
stdout
              123456
123456              *