public class DemoTest20 { public static void main (String args[]) { int sum = 0; for (int a=1;a<=1000 ;a++ ) { if(a%3==0 && a%5==0 && a%7==0) { sum+=a; } } System.out.println("1~1000之间能够同时被3、5、7整除的数字为:" + sum); } }
不知道是什么原因,我该如何处理,请大虾们指教了,小弟在此谢过。。。。 错误信息如下: The program being debugged was signaled while in a function called from GDB. GDB has restored the context t ......