Popular Posts

17. Write a program and show * ** *** ****

17. Write a program and show
*
**
***
****

*****
#include
#include
int main()
{
clrscr();
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
cout<<'*';
cout<<"\n";
}
getch();
return 0;
}


Output:
*
**
***
****
*****

No comments: