top of page
Wave
Cactus%20Plant_edited.jpg

RIGHT ANGLE ( ODD STAR )

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

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

Subscribe Form

Thanks for submitting!

  • Facebook
  • YouTube
  • Instagram
  • Twitter

©2020 by Abhisek Midya ( A18 )

bottom of page