fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. void tarefa(int r)
  6. {
  7. int e;
  8. for (e=0; e<r;e++){
  9. printf(" %d", r);
  10. }
  11. }
  12.  
  13. int main() {
  14.  
  15. int x, j;
  16. x = 10;
  17.  
  18. for(j=0; j<=x; j++){
  19.  
  20. tarefa(j);
  21. printf("\r\n");
  22.  
  23. }
  24. return 0;
  25. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
 1
 2 2
 3 3 3
 4 4 4 4
 5 5 5 5 5
 6 6 6 6 6 6
 7 7 7 7 7 7 7
 8 8 8 8 8 8 8 8
 9 9 9 9 9 9 9 9 9
 10 10 10 10 10 10 10 10 10 10