编辑器
#include
using namespace std; void countdown(int n) { if (n > 0) { cout << n << " "; countdown(n - 1); } } int main() { countdown(5); }
5 4 3 2 1