Twist_Nemo

Half Pyramid of *

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