• Source
    1. #include<stdio.h>
    2. int main()
    3. {
    4. int i,j,n;
    5. printf(" Please, Enter the no. of Rows : ");
    6. scanf("%d",&n);
    7. if(n<=0)
    8. {
    9. printf("\n Please, Enter a Positive number.");
    10. printf("\n Wrong Input.");
    11. exit(0);
    12. }
    13. for(i=n;i>=1;i--)
    14. {
    15. for(j=i;j>=1;j--)
    16. {
    17. printf("*");
    18. }
    19. printf("\n");
    20. }
    21. return 0;
    22. }