+ 1
Write a C++ program to display the following pattern
A A B A B C A B C D
1 Réponse
+ 2
int a;
for(int i = 0; i < 4; i++) {
a = 65;
for(int j = 0; j <= i; j++){
cout << static_cast<char>(a) << " ";
a++;
}
cout << endl;
}