只要你熟练用For求和可能不到10秒 public class demo05 { public static void main(String[] args) { int forSum = 0; for (int i =