public class ForDemo{
   public class static coid main(String args []){
      int sum = 0;
      for (int x = 1; x <= 100; x++) {
          sum += x;
      }
      System.out.println("1-->100累加:” + sum);
    }
  }