47-2

#include<iostream.h>
#include<conio.h>
void main()
{
                int i,j,n;
                clrscr();
                cout<<"Enter The Length of pattern :- ";
                cin>>n;
                for(i=1;i<=n;i++)
                                {
                                cout<<"\n";
                                for(j=n;j>=i;j--)
                                                {
                                                cout<<"*\t";
                                                }
                                }
                getch();
}

47

Advertisements