package com.imooc;
public class HelloWorld { public static void main(String[]args){ int sum=0; for(int i=1;i<=100;i++){ if(i%3!=0);{ sum=sum+i;//累加求和 } } System.out.println(sum)
}
if(i%3!=0)其后不能加;