[单选题]

下面程序的输出结果是()。include using namespace std;int fun (int, int);£¯£¯fun ( )

下面程序的输出结果是( )。 #include <iostream> using namespace std; int fun (int, int); //fun ( ) 函数的说明 void main( ) { int a =48,b =36,c; c = fun(a,B) ; cout<<c; } int fun(int u,int v) { int w; while (v) {w=u%v;u =v;v =w;} return u; }

A.24

B.12

C.48

D.36

参考答案与解析: