[单选题]

以下程序的输出结果是includelong fun(int n){long s; if (n=1||n=2)s=2; else s=n

以下程序的输出结果是 #include<iostream.h> long fun(int n) { long s; if (n=1||n=2)s=2; else s=n-fun(n-1); return s; } void main() {cout<<fun(3);}

A.1

B.2

C.3

D.4

参考答案与解析:

相关试题

以下程序的输出结果是#includelong fun(int n){long s