thewayur's output

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

 

#include<conio.h>
#include<iostream.h>
void main()
{
  int i,j,k,l;
  clrscr();
  for(i=5;i>=0;i--)
    {
     cout<<endl;
        for(j=0;j<=i;j++)
        {
         cout<<" ";
        }
        for(k=5;k>=j;k--)
        {
         cout<<"*";
        }
        for(l=5;l>=k;l--)
        {
         cout<<"*";
        }
     }
  getch();
}

Leave a Reply