以下程序的运行结果为( ) 。#include ;void main( ) { int n; for( n=1;n { if( n%3==0) continue; printf(“%d”,n); }}
A: 12
B: 12345678910
C: 12457810
D: 369
A: 12
B: 12345678910
C: 12457810
D: 369
举一反三
- 下面程序的运行结果为( )。#include;void main(){int n;for(n=1;n A: 12345678910 B: 12457810 C: 12 D: 369
- 执行以下程序后,输出结果为。#include<;stdio.h>;int n;void f();int main(){n=0;f();n=n+2;printf("%d\n",n);return 0;}void f(){n=n+5;}
- for (n=1; n<;=10; n++){if (n%3==0) countinue;printf(“%d”,n);}此程序段的执行结果是() A: 12457810 B: 369 C: 12 D: 1234567890
- 执行以下程序后,输出结果第一行为,第二行为。#include<;stdio.h>;int n=0;void f();int main(){int n;n=2;f();printf("%d\n",n);return 0;}void f(){n=n+5;printf("%d\n",n);}
- 以下程序的输出结果是______ 。#include int f(int n) { if(n == 1) return 1; else return n + f(n - 1);}int main(void) { printf("%d\n", f(5)); return 0;}