#include<stdio.h>
int main()
{
char arr[] = " * ";
int i = 0;
int j = sizeof(arr)/sizeof(arr[0])-2;
for (i = 0; i < 7; i++)
{
arr[6+i] = '*';
arr[6-i] = '*';
printf("%s\n",arr);
}
i = 0;
for (i - 0; i < 7;i++)
{
arr[i] = ' ';
arr[j-i] = ' ';
printf("%s\n",arr);
}
system("pause");
return 0;
}
int main()
{
char arr[] = " * ";
int i = 0;
int j = sizeof(arr)/sizeof(arr[0])-2;
for (i = 0; i < 7; i++)
{
arr[6+i] = '*';
arr[6-i] = '*';
printf("%s\n",arr);
}
i = 0;
for (i - 0; i < 7;i++)
{
arr[i] = ' ';
arr[j-i] = ' ';
printf("%s\n",arr);
}
system("pause");
return 0;
}