OneCompiler

Another interesting square pattern

1627
#include <iostream>
using namespace std;
int main() {
    // Write C++ code here
    char num='A';
    for(int i=1;i<=3;i++){
        
        for(int j=1;j<=3;j++){
            cout<<num;
            num++;
        }
        cout<<endl;
    }

    return 0;
}