#include <iostream.h>
#include <conio.h>
int main ()
{
int i , j , k;
for (i =1; i <=5; i++)
{
for (k =1; k <=5-i; k++)
cout<<" . ";
for (j =1; j <= 2*i-1; j++)
cout<<"B";
cout<<"\n";
}
return 0;
}
int i , j , k;
for (i =1; i <=5; i++)
{
for (k =1; k <=5-i; k++)
cout<<" . ";
for (j =1; j <= 2*i-1; j++)
cout<<"B";
cout<<"\n";
}
return 0;
}
No comments:
Post a Comment
If you have any doubt please let me know