编写一个程序,模拟扔硬币的结果.

package 第三天_练习题; //编写一个程序,模拟扔硬币的结果. public class Test2 { public static void main(String[] args) { int count1=0;//统计正面 int count2=0;//统计反面 for (int i = 0; i <1000; i++) { double d = Math
相关文章
相关标签/搜索