📅  最后修改于: 2022-03-11 14:59:19.437000             🧑  作者: Mango
void count(int n)
{
if (n<0)
cout << "n must be positive.." << endl;
else if (n>10)
cout << "done counting..." << endl;
else
{
cout << n << endl;
count (n+1);
}
}