fork download
  1. #include <cstdio>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. printf("%!4d\n", 2);
  8. printf("%04d\n", 2);
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 5348KB
stdin
Standard input is empty
stdout
%!4d
0002