mingtsay_d3341fb3@tg says to OwO
/cpp_interactive@mmis_js_bot #include <iostream> using namespace std; void hanoi(int n, char from, char dest, char aux) { if (n > 1) hanoi(n - 1, from, aux, dest); cout << from << "→" << dest << "(" << n << ")" << endl; if (n > 1) hanoi(n - 1, aux, dest, from); } int main() { int n; cin >> n; hanoi(n, 'A', 'C', 'B'); return 0; }