fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. int i;
  8. i = 382;
  9.  
  10. cout.fill( '0' );
  11. cout.width( 4 );
  12. cout << i;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
0382