top of page
Wave
Cactus%20Plant_edited.jpg

REVERSE RIGHT ANGLE 

#include<stdio.h>
int main()
{
    int i,j,k,n;
    printf("Enter the number of rows: ");
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
        for(j=1;j<=n-i;j++)
        {
               printf(" ");
        }
        for(k=1;k<=i;k++)
        {
              printf("*");
        }
        printf("\n");
    }          
    return 1;
}

    *
   **
  ***
 ****
*****

Subscribe Form

Thanks for submitting!

  • Facebook
  • YouTube
  • Instagram
  • Twitter

©2020 by Abhisek Midya ( A18 )

bottom of page