#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n;
cout<<"enter the number of lines :";
cin>>n;
for(int i=n; i>=1 ; i--)
{
for(int j=i ; j>=1 ; j--)
cout<<"*";
cout<<"\n";
}
getch();
}
.................................................................
OUTPUT :(click to enlarge the image)
No comments:
Post a Comment