Match the envelope items of an English letter with their typical positions.
以下程序输出的结果是________。#include "stdio.h"long fun(int n){ long s;if(n==1||n==2) s=2;else s=n-fun(n-1);return s; }main(){ printf("%ld\n",fun(3));}
A. 1
B. 2
C. 3
D. 4
以下程序执行时,给变量x输入10,程序的输出结果是________。#include "stdio.h"int fun(int n){ if(n==1) return 1;else return(n+fun(n-1)); }main(){ int x;scanf("%d",&x);x=fun(x);printf("%d\n",x); }
A. 45
B. 54
C. 55
D. 65
#include "stdio.h"void fun(int m);main(){ int w=5; fun(w);}void fun(int m){ if(m>0)fun(m-1);printf("%d ",m); }
A. 5 4 3 2 1
B. 0 1 2 3 4 5
C. 0
D. 5 4 3 2 1 0