snake eyes.txt

来自「在里面有比较详细的注释 打开后运行后就能看到 这是我们以前的设计」· 文本 代码 · 共 11 行

TXT
11
字号

public class snake eyes {
	public static void main(String[] args) {
     int a,b,countrolls=0;
     do{a=(int)(Math.random()*6)+1;
        b=(int)(Math.random()*6)+1;
         countrolls++;
     }while(a>1||b>1);
     System.out.println("the value of countRolls is "+countrolls);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?