#include<iostream>
#include<conio.h>
#include<stdlib.h>
#include<math.h>
using namespace std;
int main()
{
int y=0,x;
cout<<"Try Method One:";getch();
system("cls");
while(y<7)
{
for(x=0;x<7;x++)
if(abs(x-3)+abs(y-3)<=3) cout<<"*";
else cout<<" ";
cout<<endl;
y++;
}
cout<<"Press anykey to continue...";getch();
system("cls");
cout<<"Try Method Two:";
getch();
system("cls");
y=0;
do
{
for(x=0;x<7;x++)
if(abs(x-3)+abs(y-3)<=3) cout<<"*";
else cout<<" ";
cout<<endl;
}while(++y<7);
return 0;
}