下面代码输出结果是()var a=0,b=0;for( ;a<10,b<7;a++,b++){x=a+b;}console.log(x);
A: 18
B: 15
C: 12
D: 10
A: 18
B: 15
C: 12
D: 10
举一反三
- 下面代码输出什么 var a=0,b=0; for(;a<10,b<7;a++,b++){ g=a+b; } console.log(g);
- 阅读下列JavaScript代码,b的输出结果为()var a = 10;a++;var b =a++ + 2;console.log(b); A: 13 B: 14 C: 12 D: 15
- 下面代码的输出结果是 var a=10; function fun(a){ a++; console.log(a); } fun(a); console.log(a);
- 以下程序的运行结果是____。#include <stdio.h>void main(){ int x=1,a=0,b=0;switch(x==0){ case 0: b++;case 1: a++;breakcase 2: a++;b++;}printf("%d %d",a,b);}
- 以下程序的运行结果是____。#include <stdio.h>void main(){ int x=1,a=0,b=0;switch(x){ case 0: b++;case 1: a++;case 2: a++;b++;}printf("%d %d",a,b);}