ylca 发表于 2016-7-29 20:30 除数不能为0 两句都会报错 System.out.println(5 / 0); System.out.println(0 % 0);
caolufo 发表于 2016-7-30 21:52 除数不能为0,被除数可以取0。