You are on page 1of 1

#include <iostream>

#include <string>
using namespace std;
int main(){

int x=0,y=0;
int num=1;
char a='A';

for (x=num;x<=5;x++){
for (y=num;y<=5;y++){
if (y==1&&x<=4){
cout<<a<<" ";
a++;}

else if (y>=2&&y<5&&x==1){
cout<<" ";
a++;}

else if (x==5){
cout<<a<<" ";
a++;}

else if (y==5&&x<=5){
cout<<endl;
a++;}}}
cout<<endl;
system("pause");
return 0;}

You might also like