top of page
Wave
Cactus%20Plant_edited.jpg

REVERSE TRIANGLE  ( ODD )

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

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

Subscribe Form

Thanks for submitting!

  • Facebook
  • YouTube
  • Instagram
  • Twitter

©2020 by Abhisek Midya ( A18 )

bottom of page