下列程序的输出是__________?publicclassTest{publicstaticvoidmain(String[]args){int[][]values={{3,4,5,1},{33,6,1,2}};intv=values[0][0];for(introw=0;row<;values.length;row++)for(intcolumn=0;column<;values[row].length;column++)if(v<;values[row][column])v=values[row][column];System.out.print(v);}}
A: 1
B: 3
C: 5
D: 6
E: 33
A: 1
B: 3
C: 5
D: 6
E: 33
举一反三
- 下列程序的输出是__________?publicclassTest{publicstaticvoidmain(String[]args){int[][]values={{3,4,5,1},{33,6,1,2}};intv=values[0][0];for(introw=0;row<values.length;row++)for(intcolumn=0;column<values[row].length;column++)if(v<values[row][column])v=values[row][column];System.out.print(v);}} A: 1 B: 3 C: 5 D: 6 E: 33
- 下面代码的运行结果是什么? values=[[3,4,5,1],[33,6,1,2]] v=values[0][0] forrowinrange(0,len(values)): forcolumninrange(0, len(values[row])): ifv values[row][column]: v = values[row][column] print(v) A: 1 B: 3 C: 5 D: 6 E: 33
- 下列程序的输出是__________?[br][/br]publicclassTest{[br][/br]publicstaticvoidmain(String[]args){[br][/br]int[][]values={{3,4,5,1},{33,6,1,2}};[br][/br]intv=values[0][0];[br][/br]for(introw=0;row[values.length;row++)<br]for(intcolumn=0;column[values[row].length;column++)<br]if(v[values[row][column])<br]v=values[row][column];[br][/br]System.out.print(v);[br][/br]}[br][/br]} A: 1 B: 3 C: 5 D: 6 E: 33
- WhatwillbetheoutputofthefollowingPythoncode? [br][/br]values=[[3,4,5,1],[33,6,1,2]] [br][/br]v=values[0][0] [br][/br]forrowinrange(0,len(values)): [br][/br]----forcolumninrange(0,len(values[row])):[br][/br]--------ifv------------v=values[row][column] [br][/br]print(v) A: 3 B: 5 C: 6 D: 33
- 下列程序的输出是__________?publicclassTest{publicstaticvoidmain(String[]args){int[][]values={{3,4,5,1},{33,6,1,2}};intv=values[0][0];for(int[]list:values)for(intelement:list)if(v>element)v=element;System.out.print(v);}} A: 1 B: 3 C: 5 D: 6 E: 33