Advertisement
Josif_tepe

Untitled

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