Advertisement
dllbridge

Untitled

Sep 20th, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1.  
  2.  
  3. #include <stdio.h>
  4.  
  5. ///////////////////////////////////////
  6. void foo(int n)
  7. {
  8.      
  9.      printf("            ");
  10.      for(int i = 0; i < n; i++)
  11.      {
  12.              
  13.         printf("*");        
  14.      }
  15.      printf("\n");
  16. }
  17.  
  18.  
  19.  
  20. ///////////////////////////////////////
  21. int main()
  22. {
  23.    
  24.  
  25.     for(int i = 1; i < 10; i++)
  26.     {
  27.        foo( i);
  28.     }
  29. }
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement