Menampilkan Huruf A,C,E,G,I,K,M Menggunakan Pointer & Array 1 Dimensi (C++)

#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
char A [15]=
{‘A’,’B’,’C’,’D’,’E’,
‘F’,’G’,’H’,’I’,’J’,
‘K’,’L’,’M’,’N’,’O’};
cout<<” ==========================”<<endl;
cout<<” Nama : Nur rahman
Kelas : 02TPLE021
NIM : 17101140***”<<endl;
cout<<” ==========================

“<<endl;
cout<<“Hasil : “;
char*P;
P=&A[0];
cout<<setw(2)<<*P;
P=&A[2];
cout<<setw(2)<<*P;
P=&A[4];
cout<<setw(2)<<*P;
P=&A[6];
cout<<setw(2)<<*P;
P=&A[8];
cout<<setw(2)<<*P;
P=&A[10];
cout<<setw(2)<<*P;
P=&A[12];
cout<<setw(2)<<*P;
}