红色电波论坛新生专区 → 请教大神2个java的问题
查看完整版本:请教大神2个java的问题
2020/2/7 21:04:35

1、写出下段程序的运行结果
public class test{
static int arr[] ={1,2,3,4,5};
public static void main(String args[])
{
System.out.println(arr[]);
}
}

2、用if 嵌套编写求解下述函数的程序,给定 x 输出 y 值
. x (0≤x<10) y= x2+1 (10≤x<20) x3+x+1 (20≤x<30 )
(此题用java语言实现)

感谢各位!


Powered by ZuoJu X5.0
Processed in 0.04 second(s)