fork download
  1. #include <cstdio>
  2. #include <iostream>
  3.  
  4. int main ()
  5. {
  6. std::ios_base::sync_with_stdio(true);
  7. std::cin.tie(NULL);
  8.  
  9. for (int i = 0; i < 3; i++) {
  10. std::cout << i << " ";
  11. printf("%d ", i);
  12. }
  13.  
  14. std::cout << std::endl;
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
0 0 1 1 2 2