fork(3) download
  1.  
  2. void F(int x) {
  3. int i;
  4. for (i = 0; i < x; i++)
  5. printf("*");
  6. if (x > 1) {
  7. F(x / 2);
  8. F(x / 2);
  9. }
  10. }
  11.  
  12. void A1(int n) {
  13. F(n / 5);
  14. F(4 * n / 5);
  15. }
  16. void A2(int n) {
  17. F(2 * n / 5);
  18. F(3 * n / 5);
  19. }
  20.  
  21.  
  22.  
  23. int main()
  24. {
  25.  
  26. A1(5);
  27. printf("\n\n\n\n");
  28. A2(5);
  29. return 0;
  30. }
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
*************



*********