package xuexi;
import java.util.Random;
public class Test {
public static void main(String[] args) {
for (int i = 0; i < 100; i++) {
String min = "好";
String max = "坏";
后面不会了
4 回答
a710329590
TA贡献2条经验 获得超0个赞
import java.util.Random;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
while (1 == 1) {
double a = Math.random() * 10;
System.out.println(a > 5 ? "好" : "坏");
}
}
}
添加回答
举报
0/150
提交
取消