fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. #define ACE 1
  6. #define CardSize 52
  7.  
  8. void count();
  9.  
  10. int main(void)
  11. {
  12. count();
  13. return 0;
  14.  
  15. }
  16. void count() {
  17. int *cards;
  18. int i=0,j;
  19. cards = malloc(CardSize*sizeof(int));
  20. while(i<52){
  21. j=1;
  22. while(j<14){
  23. cards[i]=j;
  24. printf("%d", cards[i]);
  25. j++;
  26. i++;
  27. }
  28. printf("\n");
  29. }
  30. free(cards);
  31. }
Success #stdin #stdout 0s 2244KB
stdin
Standard input is empty
stdout
12345678910111213
12345678910111213
12345678910111213
12345678910111213