pattern_1

/*
*
* *
* * *
* * * *
*/

#include
#include
void main()
{
clrscr();

for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
{
cout<<" * ";
}
cout<<"\n";
}
getch();
}

0 comments:

Post a Comment