fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for (int i = 1; i <= 3; i++) {
  6. if (i == 2)
  7. cout << "A";
  8. else
  9. cout << "B";
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
2
4 2 
stdout
BAB