问题:
class TestApp{
public static void main(String[] args){
System.out.println(multiply(2,3,4,5)); }
public int multiply(int… nums){
int result = 1;
for(int x :nums)
result *= x;
//result =result*x;
return result; } }
2、6、24、120
程序运行后的输出是哪项?()
A . 14
B . 编译错误
C . 120
D . 24
class TestApp{
public static void main(String[] args){
System.out.println(multiply(2,3,4,5)); }
public int multiply(int… nums){
int result = 1;
for(int x :nums)
result *= x;
//result =result*x;
return result; } }
2、6、24、120
程序运行后的输出是哪项?()
● 参考解析
本题暂无解析
相关内容
相关标签