fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int i = 4567;
  7. printf("test: %6d | %.6d ",i,i);
  8.  
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
test:   4567 | 004567