fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. std::cout << std::setfill('0');
  6. int x = 11100;
  7. std::cout << std::setw(9) << x;
  8. }
Success #stdin #stdout 0s 3344KB
stdin
Standard input is empty
stdout
000011100