Advertisement
hamaXD

Triangle02

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