/*(c)Lateral Guys,2010*/
#include
#include
#include
void main()
{
clrscr();
int i,j,n,k;
textcolor(GREEN);
cprintf("Enter how many rows u want to see:");
cin>>n;
for(i=0;i<=n;i++)
{
for(k=n;k>=i;k--)
{
cout<<" ";
}
for(j=0;j<=i;j++)
{
if((i%2)==0)
{
textcolor(((i+1)%15)+BLINK);
cprintf("* ");
}
else
{
textcolor(((i+1)%15));
cprintf("* ");
}
}
cout<
getch();
}
/*Coded and Compiled By: Sunil Rai (sunilplayer@gmail.com)*/
/*(c)Lateral Guys,2010*/
No comments:
Post a Comment