#include<stdio.h>
void main()
{
int flag = 1;
char str[7] = {'A','B','C','D','E','F','G'};
int strnum=0;
int strflag=1;
int num = 7/3;
printf("%c\n", str[num]);
for (int i = 1; i < 4; i++)
{
if (flag == 1)
{
printf("%c\n", str[num-i]);
flag = 0;
}
if(flag==0)
{
printf("%c\n", str[num + i]);
flag = 1;
}
}
//printf("%d", strnum);
system("pause");
}
void main()
{
int flag = 1;
char str[7] = {'A','B','C','D','E','F','G'};
int strnum=0;
int strflag=1;
int num = 7/3;
printf("%c\n", str[num]);
for (int i = 1; i < 4; i++)
{
if (flag == 1)
{
printf("%c\n", str[num-i]);
flag = 0;
}
if(flag==0)
{
printf("%c\n", str[num + i]);
flag = 1;
}
}
//printf("%d", strnum);
system("pause");
}