运行以下程序,输出结果是()
int f(int a,int b){ if(b==0) return a; return f(b,a%b); } int main() { cout<<f(24,18); return 0; }
3
6
9
12