fork download
  1. #include <stdio.h>
  2.  
  3. void Funkcja(int a,const int *b)
  4. {
  5. if(!a)
  6. {
  7. printf("%d ",b[0]);
  8. return;
  9. }
  10. else printf("*");
  11. int *c=b;
  12. if(a%4==0)
  13. {
  14. printf("{%d %d} ",b[0],b[1]);
  15. c+=2;
  16. }
  17. Funkcja(a/2,c);
  18. printf("%d",b[a%4]);
  19. }
  20.  
  21. int tab[]={1, 3, 5, 7};
  22. int main()
  23. {
  24. Funkcja(13,tab);
  25. return 0;
  26. }
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
****1 3753