Write a C++ Program to Display the Following Pattern.
/* Program to display the following pattern:
*
**
***
****
*****
*/
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
for(int i=1;i<=5;i++)
{
for(int j=4;j>=i;j--)
cout<<" ";
for(int k=1;k<=i;k++)
cout<<"*";
cout<<endl;
}
getch();
}