Advance Member
|
For Demo
#include<iostream.h>
void main()
{
int x,y,z;
for(y=1; y<10; y++)
{
if ( y <= 4 )
{
for(x=1; x<=y; x++)
{
cout<< '*';
}
}
else
{
for(x=4; x>=(y-5) ; x--)
{
cout<< '*';
}
}
cout<<endl;
}
}
__________________
http://211.72.51.216:8080/
|