theme

" जीतने वाले छोड़ते नहीं और छोड़ने वाले जीतते नही "

C/C++


OUTPUT:-
           *
         *   *
      *    *   *
   *    *    *   *
*   *    *     *    *



#include
#include
void main()
{
int i,j,k;
clrscr();
{
for(i=1;i<=5;i++)
{
for(j=0;j<=5-i;j++)
{

  printf(" ");
}
for(k=1;k<=i;k++)
{
printf("* ");
}
printf("\n");
}
}
getch();
}

No comments:

Post a Comment