predict the output:
#include iostream
using namespace std;
int main() {
int n;
cin n;
for(int row=0; rown; row=row+1) {
int col;
for( col=0; colrow+1; col=col+1) {
int ans = col + 1;
char ch = ans + 'A' -1;
cout ch;
}
}
}
ENTER INPUT: 8

Posted on by